- Home /
Make object fall off platform ,Turn up gravity once player is not touching a surface
Hi, I'm a student/beginner so apologies if the question is somewhat simple. I was having an issue with my player not falling fast enough and if I turned the gravity up then I wasn't able to make it move at all. So I fixed this adding a bit of code that turned the gravity up once the jump button was pressed and then reset to a low gravity once back on the floor. The only problem (Probably not the only problem, I keep finding a lot) is that when I fall off a platform, it floats down slowly, because my code only works when the jump button is press and nobody ever jumps to their inevitable doom, they usually accidentally fall. So I was wondering how I could go about turning the gravity up when the player is no longer touching a platform, rather than just jumping? I hope I was clear enough, please just ask if any further information is needed.
Your answer
