Hi there
Quote: "JessTicular answered this 15 months ago and I didn't look back that far..."
Anyway, here's a small code for strafing - hope it helps (a little at least)
rem Make matrix
make matrix 1,2500,2500,15,15
rem Main loop
sync on : sync rate 0 : do
rem Carry out basic movement
if upkey()=1 then x#=newxvalue(x#,camera angle y(),5.0) : z#=newzvalue(z#,camera angle y(),5.0)
if downkey()=1 then x#=newxvalue(x#,camera angle y(),-5.0) : z#=newzvalue(z#,camera angle y(),-5.0)
position mouse 320,240 : hide mouse
yrotate camera wrapvalue(camera angle y()+mousemovex())
xrotate camera wrapvalue(camera angle x()+mousemovey())
rem Now add strafing
if leftkey()=1 then x#=newxvalue(x#,camera angle y()+90.0,-5.0) : z#=newzvalue(z#,camera angle y()+90.0,-5.0)
if rightkey()=1 then x#=newxvalue(x#,camera angle y()+90.0,5.0) : z#=newzvalue(z#,camera angle y()+90.0,5.0)
rem Update camera position
position camera x#,50,z#
sync : loop
If you need me to walk you through - don't hesitate to ask
HelloWorld Tommorrow