Don't use the timer functions for animation, as they just complicate things. Instead, make a variable (let's say
t) and each time you go through the loop, increment it. Once it gets to a certain value, like 10, change the sprite image and set
t back to zero.
Example (assuming that each frame of your sprite is a different image, 1,2,3,4,5,etc.):
a=1
do
sprite 1,
sprite x,
sprite y,a
t=t+1
if t=10
a=a+1
t=0
endif
sync
loop
a is the image number.
t is the time variable. If you want a longer/shorter pause between each frame, adjust the number in the statement,
if t=10. Hope this helps.