I can't figure out why the heck this exits the program after i press spacekey. It's just a model test so i can see what they animate like and look like.
autocam off
`position camera 0,10,-100
`xrotate camera 30
load object "brits1.x",1
set object speed 1,5
`load object "tchestbig/tchestbig.x",2
`load object "ship/ship.x",3
position object 1,0,-1.5,2
`position object 2,0,-1.5,2
`position object 3,0,-1.5,2
`scale object 3,1,1,1
`xrotate object 3,45
camy#=camera position y()
do
text 10,10,str$(object position x(1))
text 10,20,str$(object position z(1))
control camera using arrowkeys 0,.1,.05
if keystate(21)=1
camy#=camy#+.05
endif
if keystate(35)=1
camy#=camy#-.05
endif
if spacekey()=1
loop object 1,50,100
endif
if spacekey()=0
stop object 1
endif
position camera camera position x(),camy#,camera position z()
loop
Video games…they take you places unreachable, unfeasible. Putting you in the book...putting you in the movie...putting you in a world, that before could only be imagined. expage.com/piratesmainpage.