this code is supposed to make this object go in which ever direction its facing.... but it doesnt seem to want to
function move_cube()
EZro_Set OBJECT ANGLE X(1),OBJECT ANGLE Y(1),OBJECT ANGLE Z(1)
if rightkey() =1 then EZro_Gy +1
if leftkey() =1 then EZro_Gy -1
ROTATE OBJECT 1,EZro_GetX(),EZro_GetY(),EZro_GetZ()
if upkey() =1
tank.xpos = newxvalue(tank.xpos,object angle y(1),.1)
tank.zpos = newzvalue(tank.zpos,object angle y(1),.1)
endif
if downkey() =1
tank.xpos = newxvalue(tank.xpos,object angle y(1),-.1)
tank.zpos = newzvalue(tank.zpos,object angle y(1),-.1)
endif
position object 1,tank.xpos,tank.ypos,tank.zpos
position object 3,tank.xpos,tank.ypos+2,tank.zpos
EZro_Set OBJECT ANGLE X(3),OBJECT ANGLE Y(3),OBJECT ANGLE Z(3)
if scancode()= 30 then EZro_Gy +1
if scancode()= 32 then EZro_Gy -1
if scancode()= 17 then EZro_Gx +1
if scancode()= 31 then EZro_Gx -1
ROTATE OBJECT 3,EZro_GetX(),EZro_GetY(),EZro_GetZ()
endfunction
Also how would i find the direction something is facing?
DANGIT NEO, YOU CHANGED THE CODE AND NOW THE MATRIX WONT TEXTURE RIGHT.