oxysoft Posted August 9, 2014 Share Posted August 9, 2014 This might have been asked before but I could not find much on this subject Is there any way that doesn't involve copious amounts of boilerplate code to add another axis to have sprites jump in a top down view game? Link to comment Share on other sites More sharing options...
lewster32 Posted August 9, 2014 Share Posted August 9, 2014 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 More sharing options...
Recommended Posts