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.

Code Snippets / FPS JUMPING!!!

Author
Message
Trev
20
Years of Service
User Offline
Joined: 20th Feb 2004
Location: Canada, Ontario
Posted: 10th Mar 2004 03:49
That is right im posting how you have your camera jump.(see attached code made in dbpro) Their is no height limit tho you can set it yourself by changing the if jumpb=1 to jumpb=1 and height<(put your any height number here)

Trevor Somerville
genius
20
Years of Service
User Offline
Joined: 16th Oct 2003
Location: Utah, USA
Posted: 10th Mar 2004 05:02
From what I have found there is no "if jumpb=1 to jumpb=1 and height<(put your any height number here)" ! Also, you might try to think about making a demo which features the jump.

Bye,
Colin

Be happy, tomorrow is another day
Trev
20
Years of Service
User Offline
Joined: 20th Feb 2004
Location: Canada, Ontario
Posted: 11th Mar 2004 03:46
u have to add then add height and I don't have the time to make a demo with the jump

Trevor Somerville
Tim Ballisto
20
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Right behind you.
Posted: 12th Mar 2004 02:30 Edited at: 12th Mar 2004 02:32
check my demo in the code base, i use something startlingly similar for jumping...

http://darkbasic.thegamecreators.com/?m=codebase_view&i=456fc68cb31ab4cbd476030a4f6e52a9

EDIT: What? is that mine?!? it even uses the same variable names!

here's mine

if jumpb=1
height=height-1
position object 4,object position x(4),object position y(4)+height,object position z(4)
endif
if object position y(4)>100 then ajump=0 else ajump=1
if object position y(4)<100
position object 4,object position x(4),100,object position z(4)
jump=0
height=0
endif
Van B
Moderator
21
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 12th Mar 2004 10:20
First one to turn it into a propper snippet can claim it as there own - no point getting possesive over 15 seconds work.


Van-B


The nature of Monkey was irrepressible!.
Tim Ballisto
20
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Right behind you.
Posted: 12th Mar 2004 16:20
i know, it just seemed wierd
Trev
20
Years of Service
User Offline
Joined: 20th Feb 2004
Location: Canada, Ontario
Posted: 12th Mar 2004 21:08
yea yours is for an object mine is for a camera

Trevor Somerville
CdPirate
20
Years of Service
User Offline
Joined: 16th Mar 2004
Location:
Posted: 17th Mar 2004 14:23
Any version of this for DBC?

Pentium4 3.06Ghz 512MB ddr ram 120 GB hard drive...

And Winblows XP.
Trev
20
Years of Service
User Offline
Joined: 20th Feb 2004
Location: Canada, Ontario
Posted: 18th Mar 2004 00:44
no but im sure you can change a few things and it would work....lol im not sure what commands you dont got

Trevor Somerville

Login to post a reply

Server time is: 2024-05-11 20:01:43
Your offset time is: 2024-05-11 20:01:43