• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

How can I change to fall state

leminhtri

Member
How can I change to fall state when I can no longer touch moving objects, I can do it when jumping but I can't do it without ground. If anyone knows how please help me! Thank you very much .
1629263326426.png
 
The way proper gravity is usually done is that you're always moving down but also checking for a collision with the ground to reduce your speed to zero every frame it's there BEFORE any changes in the players y position are made
 

leminhtri

Member
I let the character move left and right and double jump I just want to change the image when falling without jumping
 
Top