Pixelguy Posted December 29, 2013 Share Posted December 29, 2013 Hey guys! I started playing around with phaser a few days ago and started my first little project and it's quite fun! However I have a problem finding any documentation for available functions. So for understanding the emitter I jumped into the Emitter.js and read the source code. Although it's well commented, it feels a bit strange so just scroll though the code.. Am I missing something obvious? So to my specific question:Is there a way to pause an emitter?I've build a little spaceship and want an emitter to be active only while the ships engines is running (While a button is pressed down) What's the best approach here? Thanks in advanced! Link to comment Share on other sites More sharing options...
rich Posted December 30, 2013 Share Posted December 30, 2013 You can use emitter.on = false to toggle an emitter on/off. Link to comment Share on other sites More sharing options...
XekeDeath Posted December 30, 2013 Share Posted December 30, 2013 Documentation is in the download, open the index.html file in the docs folder.Or, they are online here: http://gametest.mobi/phaser/docs/ Pixelguy 1 Link to comment Share on other sites More sharing options...
Pixelguy Posted December 30, 2013 Author Share Posted December 30, 2013 You can use emitter.on = false to toggle an emitter on/off. Found it after a few minutes after my post but it is my first post so I had to wait for a Mod and could not edit Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts