If KeyDown(200) And (Not (KeyDown(205) Or KeyDown(203))) TranslateEntity hero,0,0,speed#:moveto=1;up
If KeyDown(208) And (Not (KeyDown(205) Or KeyDown(203))) TranslateEntity hero,0,0,-speed#:moveto=2;down
If KeyDown(205) And (Not (KeyDown(208) Or KeyDown(200))) TranslateEntity hero,speed#,0,0:moveto=3;right
If KeyDown(203) And (Not (KeyDown(208) Or KeyDown(200))) TranslateEntity hero,-speed#,0,0:moveto=4;left
PositionEntity hero,EntityX(hero),-.2,EntityZ(hero)
If moveto<>0 And AnimSeq(hero)<>run Animate hero,1,1,run
If moveto=0 And AnimSeq(hero)<>nor Animate hero,1,1,nor
на те мой кусок кода