Kartune85
02-26-2005, 02:26 AM
I'm having a little bit of trouble with making my character jump.
I've set boundaries and used some gravity script I found on another site but when I use the Key.isDown(Key.UP) { _y -= 25; } function, I have a problem where he stays up if you hold the key down.
I've tried using things like a while loop that the up key functions until the character hits a certain point but the game doesn't like that while loop and it freezes.
I've tried different methods but to no avail.
Can anyone help? :confused:
I've set boundaries and used some gravity script I found on another site but when I use the Key.isDown(Key.UP) { _y -= 25; } function, I have a problem where he stays up if you hold the key down.
I've tried using things like a while loop that the up key functions until the character hits a certain point but the game doesn't like that while loop and it freezes.
I've tried different methods but to no avail.
Can anyone help? :confused: