Jump to content

tilemap background animation


nak3ddogs
 Share

Recommended Posts

helo.

can i find a better solution for animate 1 tile at the background?

can i add animation only for 1 tile on a layer?

map = game.add.tilemap('pina');map.addTilesetImage('tile','levelPng');layer2 = map.createLayer('Tile Layer 2');var time= 100;update(){	if (time < 0 ) {		time = 100		map.replace(10, 11, 0, 0, 32, 32, layer2);	} else{		time--;	}	}
Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...