Hey all!
Just a quick question here. I am making a game and using the Nuclear Glory Collision system, so I am using that for gravity because I thought it would be simple to make a character jump. I thought I would do this by using one key that would move the player up, and then letting the "automatic" (i.e. I don't have to do it, THANKS NG!) gravity pull it back down. The problem I am having results from the key being held.
If it is held, the player object in the game just continues to rise like a ballon rather than coming back down after a short interval of time like I would like it to. I've racked my brains trying to figure this out and have tried several things, like testing for the initial height of the object and then terminating the rise of the object after it has reached an ordained "jump height"; but none of my ideas have worked.
There must be a simple way of stopping input from my "jump" key, but I don't know what it is. Do any of you?
PS: My code for the "jump" is contained below.
`if spacekey is pressed
if Keyhold(57)
`"jump" object up
MoveobjectUpPRO(player,20.0)
MoveobjectUpPRO(sky,20.0)
endif
:: it is over! all your base are belong to us! ::