1 decade ago
by syleron
So I was wondering how I would go abouts making it so that the player entity can jump off the walls and other collision based objects?
Can anyone assist me?
you mean like a NinJump game on the iPhone?
it's basically a bouncing ball mechanic. object hits a fixed wall, bounces off in a different direction. Check the pong source code in the download section
1 decade ago
by dominic
Have a look at the Entity's
handleMovementTrace() method.
You can overwrite this method in your entity class and check if there was a collision on the x axis and if a button is held down, to implement a wall jump.
1 decade ago
by syleron
Thanks Dom, I got it working nicely.
Page 1 of 1
« first
« previous
next ›
last »