Jump to content

Ninja physics help


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

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