Can anybody Help me with a game i'm making?

I’m making an Astroneer style game called Moon Man. It’s currently in the very early stages of develpment (there’s no game yet) but for now im working on the movement. I made a bit of code so the jumps look better, but it makes you only let you jump once. Does anybody know how to fix the problem?

2 Likes

Hey @AGuyThatsBored! Fixed it.

1 Like

use the timer extension

@CyberCube do you even know what the issue is? That is not a solution. The timer extension is a personal pet peeve of mine because of how many people use it incorrectly. Anyways…

The main issue is that because you have that acceleration block in the On Start, you won’t get perfect integer velocity values, because the acceleration effects the velocity by non-integer amounts. So the While loop will never end. While I like @Ima.notarobot’s solution of simply decreasing the jump height, I think increasing the gravity would work much better. So basically what Ima.notarobot did but with -100 jump strength and increasing the gravity to also be 100.

2 Likes

Thank you guys so much! updates coming soon!

1 Like