super_frog Posted December 23, 2015 Share Posted December 23, 2015 I have an emitter (game.add.emitter) setup. Each particle have 4s to live and after that 4s, particles just disappear which is not a nice effect.I was trying to use setAlpha function, but it doesn't work if the emitter is set to explode.What I want to achieve is that each particle have 4s to fade out. Here's the codevar leftEmitter = game.add.emitter(100, 200);leftEmitter.makeParticles('pic', 0, 60, false, false);leftEmitter.gravity = 0;leftEmitter.start(true, 4000, 10, 60, false); How can I make particles fade out? Link to comment Share on other sites More sharing options...
Tilde Posted December 23, 2015 Share Posted December 23, 2015 emitter.setAlpha and emitter.autoAlpha = true work on explode for me. Did you make sure to set autoAlpha? Link to comment Share on other sites More sharing options...
super_frog Posted December 24, 2015 Author Share Posted December 24, 2015 Now it works.Thank you. Link to comment Share on other sites More sharing options...
Recommended Posts