[SOLVED] Allow jump based on time after touching platform

Allowing the player to jump at any time or increasing the size of the platforms could feel unnatural or affect gameplay. Tolerance timers shouldn’t be hard to implement - set a variable if the player is touching the ground, then decrement the variable every frame (ideally, you should set its value in milliseconds and decrement it by the delta given to the update function) and allow the player to jump if that variable is positive. This would give the player small tolerance without heavily affecting the physics of the game.

1 Like