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
Gir
23
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Crazy Taco
Posted: 17th Mar 2003 15:33
hey im making a game, a fps but im stuck on jumping, im not sure about the syntax or how to implement it, can anyone help? cheers
pete
Shadow
23
Years of Service
User Offline
Joined: 17th Oct 2002
Location: In the shadows
Posted: 17th Mar 2003 16:07
just use gravity:
i.e.
height = height + velocity (unless on ground already)
velocity = velocity - gravity
if jump pressed, velocity = whatever works best
Gir
23
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Crazy Taco
Posted: 17th Mar 2003 16:34
dont think its quite that simple as i have to get coords of camera pointing up to use to move up while still facing forward, as i am essentially moving the camera. i can do the psudo code but i need some syntax, thanx anyways.

Dr OcCuLt
23
Years of Service
User Offline
Joined: 27th Nov 2002
Location: a Dark Deep Dark pit, it dark in here
Posted: 17th Mar 2003 16:52
it is that simple you have to ues the POSITION CAMERA command not MOVE CAMERA

ie


--Dr 0--

Login to post a reply

Server time is: 2026-07-11 09:30:27
Your offset time is: 2026-07-11 09:30:27