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.

Author
Message
viscera eyes
21
Years of Service
User Offline
Joined: 29th Apr 2004
Location: the moon
Posted: 13th Aug 2004 07:48
what is the simplest way to make a character jump
Joe Cooning
22
Years of Service
User Offline
Joined: 29th Mar 2003
Location: United States
Posted: 13th Aug 2004 13:45
When they jump record the upward velocity you want. Store it in something clled like vy#. Then set variable for gravity (remember 9.8 m/sec^2 or 16 ft/sec^2). Each interval, add vy# to the height and subtract gravity from it each time until the guy hits the ground again.

Hop a long
21
Years of Service
User Offline
Joined: 12th May 2004
Location: The Code Dump
Posted: 14th Aug 2004 13:43
Here's some code showing a simple jump:
http://www.geocities.com/hifin2003/jump.html
There is some use of static objects that may be confusing, but that is there because you need something to jump off of.
The same jump routine can be used with a matrix as well:
http://www.geocities.com/hifin2003/matrix_jump.html
viscera eyes
21
Years of Service
User Offline
Joined: 29th Apr 2004
Location: the moon
Posted: 14th Aug 2004 15:53
thanks but will that work with DBP?
Hop a long
21
Years of Service
User Offline
Joined: 12th May 2004
Location: The Code Dump
Posted: 17th Aug 2004 11:06
Sorry, don't know. I have DBC. You can copy and paste the code from the site. Try to run it from your editor, you'll know right away.

Login to post a reply

Server time is: 2025-05-25 10:40:55
Your offset time is: 2025-05-25 10:40:55