Jump to content

phaser 2.7.3 emitter not working correctly


misfit
 Share

Recommended Posts

Hello,

I have been using phaser 2.6.2 and this emitter worked fine: 

 var emitter = this.game.add.emitter(hitMeteor.body.x+hitMeteor.body.width/2, hitMeteor.body.y+hitMeteor.body.height/2, 6);
        emitter.makeParticles('meteorPiece');
        emitter.minParticleSpeed.setTo(hitMeteor.body.width/2,-hitMeteor.body.height/2);
        emitter.maxParticleSpeed.setTo(70,hitMeteor.body.height/2);
        emitter.gravity = 0;
        emitter.start(true,1000,null,100);

Today I have copied a new version (phaser 2.7.3) and the particles just stay in place rotating like their speed was equal to 0.

In the docs I did not find any of those functions deleted so I am not sure what is wrong here.

Thanks for all the help!

***

OK. Deleting emitter.gravity = 0; helped. 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...