hi guys i need some help with this game im making if made a code were it moves on its axises but if i turn left or right then i want to look up it resets heres the code
Rem Project: space
Rem Created: 07/03/2007 01:28:07
Rem ***** Main Source File *****
load object "spacecar.x",1
position object 1,0,0,0
scale object 1,10,10,10
make matrix 1,1000,1000,10,10
position matrix 1,0,0,0
camx=object position x(1)
camy=object position y(1)
camz=object position z(1)
rotx=object angle x(1)
roty=object angle y(1)
rotz=object angle z(1)
speed#=0.1
do
if upkey()=1 then rotate object 1,object angle x(1)-0.1,0,0
if downkey()=1 then rotate object 1,object angle x(1)+0.1,0,0
if rightkey()=1 then turn object right 1,0.1
if leftkey()=1 then turn object left 1,0.1
if spacekey()=1
if spacekey()=0 and speed#>0 then move object 1,speed#+0.01
move object 1,speed#
inc speed#,0.001
endif
if speed#>2 then speed#=2
if speed <-2 then speed#=-2
if controlkey()=1
move object 1,speed#
dec speed#,0.1
endif
Position Camera Object Position X(1),Object Position Y(1)+35,Object Position Z(1)
Rotate Camera Object Angle X(1),Object Angle Y(1), Object Angle Z(1)
Move Camera -(100)
loop
life is short but so am i