ok so i made this little game and in the main game i put the hovercraft in front of the camera (yes the numbers are exactly right for that) but when we do lock object on, the hovercraft moves up into the corner. does anyone know what's happening.
load image "new game.bmp",1
load image "save game.bmp",2
load image "cutscenes.bmp",3
load image "new gamehi.bmp",4
load image "save gamehi.bmp",5
load image "cutsceneshi.bmp",6
load image "tex.tga",7
load image "forgot.bmp",8
color backdrop rgb(1,1,1)
paste image 8,50,90
make object plain 1,520,520
texture object 1,1
xrotate object 1,70
yrotate object 1,10
scale object 1,80,80,80
clone object 2,1
position object 2,315,0,0
texture object 2,2
yrotate object 2,10
clone object 3,1
position object 3,-335,0,0
texture object 3,3
yrotate object 3,-10
move object 2,15
move object 3,-15
a=3
do
paste image 8,50,60
if a=1
texture object 1,4
else texture object 1,1
endif
if a=2
texture object 2,5
else texture object 2,2
endif
if a=3
texture object 3,6
else texture object 3,3
endif
if leftkey()=1 then a=a+1
if rightkey()=1 then a=a-1
if a=4 then a=3
if a=0 then a=1
if returnkey()=1
exit
endif
loop
if a=3
end
endif
cls
backdrop off
delete object 1
delete object 2
delete object 3
cls
make object sphere 2,-1800
load image "sky.bmp",9
load object "level.x",1
texture object 1,7
texture object 2,9
load object "hovercraft.x",3
move object 3,50
scale object 3,10,10,10
position camera -126.132904053,40,231.440856934
yrotate camera 180
loop object 3
set object speed 3,300
yrotate object 3,180
position object 3,-126.132904053,10,145.440856934
autocam on
lock object on 3
do
control camera using arrowkeys 0,2,1
loop
will add screenshot to demonstrate later.
thanks to deathead for the sig!
Projects: alien abductor-5%