Jump to content

How to slow a monster?


pimous
 Share

Recommended Posts

Hi everyone,

 

I am new in the phaser world, so I have some dummy questions.

I have a monster and he is always jumping and I want he accelerates when the player is below it. How I can do that ? I catch the position of the player and then I change the monster.body.gravity.y to 1000 (instead of 100). But after the monster doesn't the same jumps. How I can fix that ? To solve this problem I think I should not change the gravity but the monster speed. How i can do that ?

 

Thank you :)

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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