Jump to content

Ninja physics help


Wahooiy
 Share

Recommended Posts

I have started to make a game making use of illuminated.js and started with arcade physics (http://www.pixelshader.co.uk/illuminate/).  I moved on to using tiles with more complex shapes and moved onto ninja physics to accommodate this.  I managed to set the slope map correctly and the collision works but I have a few questions:

1. I cant seem to move up slopes.  This can be seen when playing the game (currently a small test) when moving to the right.  How can i get the character to move up the slope?
2. Is it possible to change the sprites AABB body size with ninja physics? (can turn on debug body using Q in the game)
3. With arcade physics it was possible to do 'body.blocked.down' to test if a sprite was on the ground, to test prior to jumping.  Is something similar possible with ninja physics?

Thank you for your help!

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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