Hello,
I have a similar problem. I have a png with 26 frames but canĀ“t see other frames after the animation is initialized. This is driving me crazy. Tried stopanimation, resume, etc... nothing works...
SetVirtualResolution ( 640, 480 )
rem Background image 640x480
CreateSprite ( LoadImage ( "grass.jpg" ) )
rem Horse Animation (26 frames), eating:Frame 1-14, walking:Frame 15-26
horse = CreateSprite ( LoadImage ( "horse_animation.png" ) )
SetSpritePosition ( horse, 20, 200 )
SetSpriteAnimation ( horse, 144, 144, 26 )
rem Horse begins to walk
PlaySprite ( horse, 10, 1, 15, 26 )
rem Horse is not eating
eating = 0
do
if (eating = 0)
x = GetSpriteX(horse)
if (x > 480) rem After horse walks > 480 it needs to eat...
And boy it will not STOP! (flag eating=1 forever)
eating = 1
PlaySprite ( horse, 10, 1, 1, 14 )
elseif (x < 480) rem If not continues walking
SetSpritePosition ( horse, x+1, 200 )
endif
endif
Sync ( )
loop