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 Professional Discussion / JUMP just jump for da game

Author
Message
darkbpro
16
Years of Service
User Offline
Joined: 9th Jul 2010
Location:
Posted: 9th Jul 2010 23:22
hi frind\'s as u see im new in dis site but older in dbpro
so i have proplem in jump

this is da code can any 1 here support me

autocam off:sync rate 20:sync on
make object cube 1,10
position object 1,0,-5,150

do

IF SPACEKEY()=1 AND Jumping=0 THEN Jump=1
x#= object position x(1)
y#= object position y(1)
z#= object position z(1)


IF Jump=1
Jump_Speed#=3
Jumping=1
Jump=0
ENDIF

IF Jumping=1
dec Jump_Speed#,0.1 POSITION OBJECT 1,x#,Y#+Jump_Speed#,Z#
ENDIF

sync
loop


as u see after da object jump when it falling it can\'t rech da ground it keep falling

so
what im suppost to do
pleas hep me
^_^


we can do it by DBpro ^_^
James H
19
Years of Service
User Offline
Joined: 21st Apr 2007
Location: St Helens
Posted: 10th Jul 2010 00:38 Edited at: 10th Jul 2010 00:38
Add


just before sync
bergice
19
Years of Service
User Offline
Joined: 5th Jun 2007
Location: Oslo,Norway
Posted: 10th Jul 2010 02:28
Nice grammar, try to put your code inside a code block by pressing the "code" button.

9cdfb439c7876e703e307864c9167a15
darkbpro
16
Years of Service
User Offline
Joined: 9th Jul 2010
Location:
Posted: 12th Jul 2010 20:09
Thank's alot JAMES H

we can do it by DBpro ^_^

Login to post a reply

Server time is: 2026-07-25 08:29:54
Your offset time is: 2026-07-25 08:29:54