Jump to content

Phaser Arcade Emitter's speed is not working (Phaser-CE 2.7.3)


Recommended Posts

I've had this problem for awhile now, and just figured out what went wrong. Figured I'd post for the future generations. I was setting up emitters and no matter what I did, they didn't have any speed. Eventually I discovered it is because emitter.gravity is a point object (not a number), you need to use setTo. I tried to reproduce the error in sandbox, but it still works for some weird reason.

Regardless, you can fix the issue by doing 

    emitter.gravity.setTo(0, 0);

Instead of 

    emitter.gravity = 0;


Link to comment
Share on other sites

  • 3 weeks later...

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.

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.


  • Recently Browsing   0 members

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