totallybueno Posted February 1, 2015 Share Posted February 1, 2015 Hi there,so I´m trying to make this with an emitter, the idea is to "launch" the particle (something like a ring) at a small scale and increase that scale on every update, to get something like this picture. You shoot small rings and they get bigger and bigger. The question is, how can I do that? I guess I need to extend the particle classo or probably (and easier) a forEach or something like that... Link to comment Share on other sites More sharing options...
hollowdoor Posted February 1, 2015 Share Posted February 1, 2015 There is a scale property for particles you can increase during `update`. I'm not an expert, but I thought I'd give you hint while you're waiting for the real thing. I don't know about making rings though. I'd probably use a sprite for that. Link to comment Share on other sites More sharing options...
totallybueno Posted February 1, 2015 Author Share Posted February 1, 2015 I'm not sure, but I think someone said once how to do it when you start the emitter... trying to find that. Link to comment Share on other sites More sharing options...
Gibson001 Posted February 2, 2015 Share Posted February 2, 2015 I guess you're looking for this function: Phaser.Emitter.setScale(minX, maxX, minY, maxY, rate, ease, yoyo);You can chceck this: http://examples.phaser.io/_site/view_full.html?d=particles&f=firestarter.js&t=firestarterIn example particles are getting smaller but it's the same usecase. totallybueno 1 Link to comment Share on other sites More sharing options...
totallybueno Posted February 2, 2015 Author Share Posted February 2, 2015 That´s exactly what I needed Thanks mate! Link to comment Share on other sites More sharing options...
Recommended Posts