Jump to content

p2 and .body.moves


Recommended Posts

Hi guys, 


I am working on my first Phaser game and have one little question:


According to the (http://docs.phaser.io/Phaser.Physics.Arcade.Body.html#moves) I should be able to do:


spriteName.body.moves = false;


on a physics enabled sprite in order to allow the mouse input to move it around. But it doesn't seem to work using P2 physics, only arcade. Is there any way to achieve the same effect in P2 or am I doing something wrong? 


I am doing a pretty similar thing to this example except with P2: 




Thanks in advance!


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.

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...