Jump to content

Slow moving in P2.


yegorf1
 Share

Recommended Posts

you could move it like you would move every object in p2 just with a very very low value?

 

in the update() function:

player.body.moveRight(10);

this movement is hardly visible.. if you go even lower this is maybe what you want..

otherwise you could do something like this to be very precise..  

 

in the create() function:

game.time.events.loop(Phaser.Timer.SECOND * 1, moveBody, this);function moveBody(){   whatever.body.x += 1;}
Link to comment
Share on other sites

 

you could move it like you would move every object in p2 just with a very very low value?

 

in the update() function:

player.body.moveRight(10);

this movement is hardly visible.. if you go even lower this is maybe what you want..

otherwise you could do something like this to be very precise..  

 

in the create() function:

game.time.events.loop(Phaser.Timer.SECOND * 1, moveBody, this);function moveBody(){   whatever.body.x += 1;}

No, I setting velocity to move.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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