So, I think I understand animation for the most part, but the in the code I am about to link I am attempting to display my animated sprite in different frames that change based on player input.
Behind the Sprite I have an image that moves coordinates based on player input as well. IE, you press rightkey and the image moves left to simulate movement, like in simple RPGs.
You can assume that I used GET IMAGE and LOAD IMAGE for everything correctly, because I see everything I need to see. Something isn't working correctly because there is still a blue flicker, and the char displays animation frames erratically.
main_game:
sync on
cls
sprite 1,120,112,9
do
idle_count = idle_count + 1
paste image 4,map_x_position,map_y_position
if downkey()=1
for n=1 to 16
dec map_y_position,1
paste image 4,map_x_position,map_y_position
play sprite 1,1,2,500
sync
next n
endif
if upkey()=1
for n=1 to 16
inc map_y_position,1
paste image 4,map_x_position,map_y_position
play sprite 1,5,6,500
sync
next n
endif
if leftkey()=1
for n=1 to 16
inc map_x_position,1
paste image 4,map_x_position,map_y_position
play sprite 1,3,4,500
sync
next n
endif
if rightkey()=1
for n=1 to 16
dec map_x_position,1
paste image 4,map_x_position,map_y_position
play sprite 1,3,4,500
sync
next n
endif
sync
loop