Hi, I am having an issue with Dark Physics. The move object command doesn't work. I have spelled it correctly and such but it just don't work. What am I doind wrong?
My code :
autocam off
sync on
Sync Rate 600
hide mouse
phy start
make object sphere 1, 40
Position Object 1, 0, -20, 0
phy make rigid body dynamic sphere 1
load object "MapsLvl1.dbo", 2
Position Object 2, 0, -200, 0
phy make rigid body static mesh 2
Set Shadow Shading On 1
DO
phy update
gosub Controlls
gosub Camera
sync
LOOP
Controlls:
Elapsed# = Timer() - OldTime
OldTime = Timer()
if upkey()=1
Move Object 1, Elapsed#*.2
endif
if downkey()=1 then phy set rigid body linear velocity 1, 0, 0, -5
if leftkey()=1 then phy set rigid body linear velocity 1, -5, 0, 0
if rightkey()=1 then Phy Set rigid body linear velocity 1, 5, 0, 0
return
Camera:
Position Camera Object Position X(1), Object Position Y(1)+200, Object Position Z(1)-40
Point Camera Object Position X(1), Object Position Y(1), Object Position Z(1)
return
Notice the upkey if statement.