spinnerbox Posted July 12, 2017 Share Posted July 12, 2017 I have a basket of flowers. When certain condition is met, the basket will blow and the flowers inside are thrown everywhere. I know some physics and gravity would be included. What would be the best approach to achieve this effect? Link to comment Share on other sites More sharing options...
samme Posted July 12, 2017 Share Posted July 12, 2017 Phaser.Particles.Arcade.Emitter#explode spinnerbox 1 Link to comment Share on other sites More sharing options...
spinnerbox Posted July 12, 2017 Author Share Posted July 12, 2017 Does this particle stuff need WebGL? Can it be achieved with 2D physics? Link to comment Share on other sites More sharing options...
samme Posted July 12, 2017 Share Posted July 12, 2017 No, yes. examples/v2/category/particles spinnerbox 1 Link to comment Share on other sites More sharing options...
spinnerbox Posted July 16, 2017 Author Share Posted July 16, 2017 What if I want to mix flowers with different colours, is there an option to mix sprites? Or just use separate emitters? Link to comment Share on other sites More sharing options...
WiLD11 Posted July 17, 2017 Share Posted July 17, 2017 On 7/16/2017 at 9:46 PM, spinnerbox said: What if I want to mix flowers with different colours, is there an option to mix sprites? Or just use separate emitters? https://phaser.io/examples/v2/particles/random-sprite spinnerbox 1 Link to comment Share on other sites More sharing options...
samme Posted July 20, 2017 Share Posted July 20, 2017 In makeParticles the keys and frames arguments can be arrays. spinnerbox 1 Link to comment Share on other sites More sharing options...
spinnerbox Posted July 20, 2017 Author Share Posted July 20, 2017 Ok, ok, how about, which event is fired when the emitter stops? Can i run a function at that time? Or is there such event? Link to comment Share on other sites More sharing options...
samme Posted July 20, 2017 Share Posted July 20, 2017 There is no such event, but you can check emitter.on. spinnerbox 1 Link to comment Share on other sites More sharing options...
Recommended Posts