try this
load object "Knight.x",1
PlayerMove = 0
do
inc PlayerMove
`controls.
`walking
`forward
if upkey()=1 and PlayerMove > 0
append object "KnightWalk.x",1,1
play object 1,1
move object 1,1
if upkey() = 0
dec PlayerMove
append object "KnightIdle.x",1,1
play object 1,1
endif
`Backwards
if downkey()=1
dec PlayerMove
endif
if PlayerMove < 0
append object "KnightBackwards.x",1,1
play object 1,1
move object 1,-1
endif
`left
figure this one out yourself
`right
see above
loop
anyways, i hope that helps you.
CURRENT PROJECT: Enemy At The Gates