Hi there, I am pretty far with my 3th-person game but my problem is I can't seem to get my character strafing. I have this:
if upkey()=1 then x#=newxvalue(x#,a#,10) : z#=newzvalue(z#,a#,10)
if downkey()=1 then x#=newxvalue(x#,a#,-10) : z#=newzvalue(z#,a#,-10)
rem this is the part I want to use for the strafing
if leftkey()=1 then x#=newxvalue(z#,a#,10) : z#=newzvalue(x#,a#,10)
if rightkey()=1 then x#=newxvalue(z#,a#,-10) : z#=newzvalue(x#,a#,-10)
rem here ends the part that does not work
if mousemovex() then a#=wrapvalue(a#+mousemovex())
if mousemovey() then cy#=wrapvalue(cy#+mousemovey())
but it does not work properly. Does anybody can get this to work?
One must keep his friends close,
but his enemies even closer. -The Godfather