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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

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