Hi,
I've managed to get character to turn in 4 directions, but am unsure how i get the diagonal directions to work, they just slide along instead of playing animation.
Any help would be greatly appreciated
The code is below
do
if rightkey()=1
if checkright=0 then set sprite frame 1,9
checkright=1
checkleft=0
checkup=0
checkdown=0
ver=1
inc x#,3
play sprite 1,9,12,100
endif
if leftkey()=1
if checkleft=0 then set sprite frame 1,5
checkleft=1
checkright=0
checkup=0
checkdown=0
dec x#,3
play sprite 1,5,8,100
endif
if upkey()=1
if checkup=0 then set sprite frame 1,13
checkup=1
checkright=0
checkleft=0
checkdown=0
dec y#,3
play sprite 1,13,16,100
endif
if downkey()=1
if checkdown=0 then set sprite frame 1,1
checkdown=1
checkup=0
checkleft=0
checkright=0
inc y#,3
play sprite 1,1,4,100
endif
if rightkey()=0 and checkright=1 then set sprite frame 1,9
if leftkey()=0 and checkleft=1 then set sprite frame 1,5
if upkey()=0 and checkup=1 then set sprite frame 1,13
if downkey()=0 and checkdown=1 then set sprite frame 1,1
sprite 1,x#,y#,1
sync
cls
loop