At the moment I have code for moving forwards and backwards that works very well. I also have code to side step very well. The only problem is that they cant be used at the same time. if im sidesteping I can't move forwards and if im moving forwards i cant sidestep. Im guessing it is because im using 2 diferent methods to move, but im not sure. The moving forwards code is in a function, I dont know if that makes a difference. Well ikll post the 2 bits of code now.
moving forwards and backwards:
if keystate(17)=1 then move object id,.5
if keystate(31)=1 then move object id,-.3
sidesteping code:
If keystate(30)=1
XTest# = Newxvalue(X#,Wrapvalue(object Angle Y(1)-90),.5)
ZTest# = Newzvalue(Z#,Wrapvalue(object angle y(1)-90),.5)
position object 1,xtest#,y#,ztest#
Endif
If keystate(32)=1
XTest# = Newxvalue(X#,Wrapvalue(object angle y(1)+90),.5)
ZTest# = Newzvalue(Z#,Wrapvalue(object angle y(1)+90),.5)
position object 1,xtest#,y#,ztest#
Endif
I appreciate the help.
Thanks