Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

2 decades 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?

2 decades ago by fugufish

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

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

2 decades ago by syleron

Thanks Dom, I got it working nicely.
Page 1 of 1
« first « previous next › last »