blackhawx Posted October 8, 2018 Share Posted October 8, 2018 Within the labs example of setting up a Blitter for fruit flying around... http://labs.phaser.io/edit.html?src=src/game objects\blitter\benchmark test 3.js I see that it runs on an update() process. But what if I wanted to destroy or remove the Blitter after 10 seconds? What would be the cleanest way of doing that in this example? Link to comment Share on other sites More sharing options...
blackhawx Posted October 8, 2018 Author Share Posted October 8, 2018 I think I solved my issue by understanding how to destroy a bob, and also learning how to use the timer event process as demonstrated here and here. Link to comment Share on other sites More sharing options...
cornstipated Posted October 8, 2018 Share Posted October 8, 2018 blitter.children.each(function(bob,context){bob.destroy()},this) is a way blackhawx 1 Link to comment Share on other sites More sharing options...
Recommended Posts