Yora Posted February 10, 2014 Share Posted February 10, 2014 Hiya, quick question. I'm trying to get some deceleration on my emitter particles, and it looks like the way to do that is with Emitter.particleFriction, which I'm trying to set like this:emitter = this.game.add.emitter(200, 200 + (i * 16), 1); emitter.makeParticles('sadf'); emitter.minParticleSpeed.setTo(-90, -20); emitter.maxParticleSpeed.setTo(90, -300); emitter.particleFriction = 150;Though this does nothing. Just not sure if I'm doing something wrong or if this isn't working currently, thanks! Link to comment Share on other sites More sharing options...
rich Posted February 10, 2014 Share Posted February 10, 2014 I've just checked and friction is definitely being set on the Body, so it's working - however you've given it a really high value which I suspect is throwing it out. The default is 0, with 0.1 recommended. So try a much lower number and see what happens! Link to comment Share on other sites More sharing options...
AlexArroyoDuque Posted February 22, 2014 Share Posted February 22, 2014 Hello! I tried applying friction in the following ways, but none works: this.emitter = this.game.add.emitter(0, 0, 50); this.emitter.makeParticles('soul', [0], 10, true, true); this.emitter.gravity = emitterGravity; this.emitter.particleFriction = 0.8; // nothing this.emitter.body.particleFriction = 0.8; // error this.emitter.cursor.body.particleFriction = 0.8; //nothing this.emitter.Body.particleFriction = 0.8; //nothing I must be doing something wrong ... Link to comment Share on other sites More sharing options...
Heppell08 Posted February 22, 2014 Share Posted February 22, 2014 You tried declaring the emitter as a new var. I have 2 emitters in my game and each has its own var. Eg:// declare the varvar bleeding;// create it in createbleeding = this.add.emitter(bla bla);So if you try declaring the emitter like I do and then://in create stillbleeding.particleFriction = 0.8;This is a total guess btw because I've not needed friction in my particles but maybe that's the way to declare it. Worth a try. Link to comment Share on other sites More sharing options...
AlexArroyoDuque Posted February 22, 2014 Share Posted February 22, 2014 Not working Link to comment Share on other sites More sharing options...
AlexArroyoDuque Posted February 25, 2014 Share Posted February 25, 2014 Has anyone used particles with friction? Link to comment Share on other sites More sharing options...
AlexArroyoDuque Posted February 28, 2014 Share Posted February 28, 2014 up Someone can help me? Link to comment Share on other sites More sharing options...
Recommended Posts