Jump to content

How to "kill" at the atlas(animation) group?


Ivasik
 Share

Recommended Posts

There is a code of creating animated group pictures(2 pictures). How to kill/destroy/remove at the beginning of image 1, then 2?

		lives_kill = this.game.add.group();
		
		for (var i = 0; i < 2; i++) {
			gem_kill = lives_kill.create(game.world.width - 1142 + (33 * i), 405, 'lives');
        	        gem_kill.scale.set(0.25);
		}
Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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