Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / Making things jump!

Author
Message
Godweeno
22
Years of Service
User Offline
Joined: 5th Nov 2002
Location:
Posted: 25th Mar 2003 15:35
How do I get my object to 'jump'. I can make the object fall back to the ground but the player can keep hold of the up arrow and the object keeps going up. How do I make it jump once with one press of the up arrow key? :-s
Kentaree
22
Years of Service
User Offline
Joined: 5th Oct 2002
Location: Clonmel, Ireland
Posted: 25th Mar 2003 15:47
Make a variable called boolJump (or whatever you want to call it) to set
jumping to either true or false. Then use the upkey() command along with the boolean value to test if the object is in the air or not, if not, set the boolean value back to 0.



Whatever I did I didn't do it!

Login to post a reply

Server time is: 2025-05-17 06:21:04
Your offset time is: 2025-05-17 06:21:04