Yesterday we got the player jumping and limiting it a bit, but today we’ll create a more solid approach to limiting the players jumps by creating a cooldown system.

As with any cooldown system, we’re going to need a permission boolean to give the OK when it’s safe to commit to an action again.

Next in the jump function, we’ll set _resetJumpNeeded to true

Esteban Ibarra

cartoonist, game artist, and wanabe gamedev.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store