Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

maybe i should have worded it better

when your jumping off the ground your y_velocity (how much your y coordinate changes per frame) is 0

when your in the air its no 0 because your moving up or down which messes up the double jump

so your code when jump is pressed might look like:

y_velocity = y_velocity + jump_velocity

when it should just be:

y_velocity = jump_velocity