I have a rotation problem
Rem Project: JoypadTest
sync on : sync rate 0 : color backdrop rgb(100,0,200)
set text font "arial" : set text size 16
set text to bold : set text transparent
back=0
go=0
rem Loading Prompt
sync : center text screen width()/2,screen height()/2,"LOADING" : sync
set current camera 0
set camera range 1,7000
MAKE OBJECT Box 1,25,50,100
rem main loop
do
Ljoy=0
Rjoy=0
go=joystick fire c()
Ljoy=joystick LEFT()
Rjoy=joystick RIGHT()
back=joystick fire a()
if go = 1 then move object 1,4
if Ljoy = 1 then ang#=ang#-2: rotate object 1,0,ang#,0:ang#=ang#:Ljoy=0
if Rjoy = 0 then ang#=ang#+2: rotate object 1,0,ang#,0:ang#=ang#:Rjoj=0
if back = 1 then move object 1,-1
sync
loop
I've created an object and a camera and have added functions to the object to rotate, move forward and reverse.
but for some reason it likes to rotate all the time.
Help would be appreciated
Thanks