
Originally Posted by
TheFieryPlumber
Here's a topic to think about-
One of the more popular mechanics devs like to implement in Platform Games is Wall Jumps.
A common mistake some devs make is giving the player object the opportunity to jump when collided to a wall.
The flaw is, the player can make the player object infinitely jump just by pressing the jump button over and over again as long as the PO is touching a wall.
There are many ways a Wall Jump can be implemented.
My way is giving the player object side detectors, and whenever a side detector collides with a Group Object that acts like a wall backdrop, the player object freezes in place until either the player jumps away from the wall or a small amount of time is up, making the player drop down.
I've done this, and it works great; I just have to stop the grav loop whenever the player object freezes place or else when the player object drops, it will plummet to the ground with uncontrollable speed and allow you to keep jumping.
Does anyone have their own version of a wall jump they would like to share?