Can someone help me with this? why is DB saying the object does not exsist when it does I am trying to get a third as well as a 1st person view controllable with the joystick hat but the limb instruction keeps saying that the object doesn't exist, that isn't right at all
Here is the code
REM ****************************************************************
REM ****************************************************************
REM ****************************************************************
REM ****************************************************************
REM ****************************************************************
REM ****************************************************************
REM Hovercraft Tank X36 USB Experimental
REM Author :Ian George aka Vampyre
REM ****************************************************************
REM ****************************************************************
REM ****************************************************************
REM ****************************************************************
REM ****************************************************************
REM ****************************************************************
autocam off
hide mouse
sync rate 60
sync on
Make matrix 1,10000,10000,40,40
Rem texture matrix
Load image "grass09.bmp",1
Prepare matrix texture 1,1,1,1
Fill matrix 1,0,1
rem Randomize the matrix
randomize matrix 1,125
update matrix 1
X#=5000
Z#=5000
rem Make drone to mark a back position
make object sphere 3,10
hide object 3
rem Limb 1 - look from the back (default camera position)
add limb 2, 1, 1
hide limb 2, 1
offset limb 2, 1, 0.0, 20.0, -150.0
rem Limb 2 - Look down from above
add limb 2, 2, 1
hide limb 2, 2
offset limb 2, 2, 0.0, 150.0, 0.0
rem Limb 3 - Look from the right
add limb 2, 3, 1
hide limb 2, 3
offset limb 2, 3, 150.0, 0.0, 0.0
rem Limb 4 - Look from the left
add limb 2, 4, 1
hide limb 2, 4
offset limb 2, 4, -150.0, 0.0, 0.0
rem load hovercraft object
load object "textbox.X", 2
rem Rotate and fix data so character faces right way
xrotate object 2,0
yrotate object 2,360
zrotate object 2,0
fix object pivot 2
X# = object position X(2)
Z# = object position Z(2)
Y# = Get ground height(1,X#,Z#)
Position object 2,1000,70,1000
AngleY# = 0.0
rem scaling to 10% (YOU WILL NEED TO ADJUST THIS)
scale object 2, 120,120,120
cammode = 0
do
rem movement
if joystick up() then pitch object up 2,0.0025
if joystick down() then pitch object down 2,0.0025
if joystick left()=1 then turn object left 2,5
if joystick right()=1 then turn object right 2,5
if joystick slider a()=0 then move camera 20 : move object 2,100
if joystick slider a()=64852 then move camera 20 : move object 2,-80
if joystick twist Z()=1000
turn object left 2,90 : move object 2,10 : turn object right 2,90
endif
if joystick twist Z()=-1000
turn object right 2,90 : move object 2,10 : turn object left 2,90
endif
rem HAT control
jhat=joystick hat angle(0)
text 10,10,"HAT signal: "+str$(jhat)
text 10,20,"Joystick: "+str$(jx)+"/"+str$(jy)
text 10,30,"Slider: "+str$(joystick slider a())
text 10,40,"FPS: "+str$(screen fps())
rem Set the hat look flags to nothing
lookUp = 0: lookLeft = 0: lookRight = 0: lookBack = 0
if jhat = 0 then lookUp = 1
if jhat=9000 or jhat=4500 or jhat=13500 then lookRight = 1
if jhat=31500 or jhat=27000 or jhat=22500 then lookLeft = 1
if jhat = 18000 then lookBack = 1
If InKey$() = "1" Then cammode = 1 : ` third person
If InKey$() = "2" Then cammode = 0 : ` first person
If cammode = 0
rem Place camera and set orientation to object for FPS
position camera object position x(2),object position y(2)-2,object position z(2)
set camera to object orientation 2
if lookRight = 1 then turn camera right 90.0
if lookLeft = 1 then turn camera left 90.0
if lookUp = 1 then pitch camera up 45.0
if lookBack = 1 then turn camera right 180.0
else
rem Place as over head for 3rd person
move object 2,-150
position object 3,object position x(2),object position y(2),object position z(2)
move object 2, 150
If cammode = 1
position camera limb position x(2,Limb), limb position y(2,Limb), limb position z(2,Limb)
set camera to object orientation 2
endif
limb=1
if joystick hat angle(0)= 0 then Limb=2
if joystick hat angle(0) = 9000 then Limb=3
if joystick hat angle(0) = 18000 then Limb=4
rem Place camera and set orientation to object
position camera object position x(3),object position y(3), object position z(3)
set camera to object orientation 2
Endif
sync
loop