Jump to content

Top down game and jumping/physics


oxysoft
 Share

Recommended Posts

Presumably you want the character to jump over certain objects? If so, you could just have an 'isJumping' variable and when that's true, certain objects which are marked as being 'jump-over-able' aren't checked for collision, allowing the character to jump over and on top of the objects. If they land inside an object ('on top of' it in your case) the collision code will still allow them to walk out of the object ('off it' in your case) and then prevent them walking back inside it. Then all you have to do is create the animation for it. It's a cheat but it'll work if the above is all you need to do.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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