Skip to main content

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

Thanks for your comments and especially the bit about the gravity. That was something that I just could not figure out why it would not work properly, I'll have to look into resetting the gravity and see how that changes things!

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