If you're talking about making a sprite animation using the CREATE ANIMATED SPRITE command the speed of the animation is in the PLAY SPRITE command.
Quote from the help files:
Quote: "PLAY SPRITE
This command will play an animated sprite.
Syntax
PLAY SPRITE Sprite Number, Start Frame, End Frame, Delay Value
Parameters
Sprite Number
Integer
The sprite number
Start Frame
Integer
The command defines the start frames to be played. These frames must have been previously set up using the CREATE ANIMATED SPRITE command
End Frame
Integer
The command defines the end frames to be played. These frames must have been previously set up using the CREATE ANIMATED SPRITE command
Delay Value
Integer
The Delay Value specifies the delay factor between animating frames. A low value is fast, a high value is slow
"
The delay value in PLAY SPRITE determines in milliseconds when the next frame will show (1000 milliseconds is 1 second).
If you grab the frames manually you use a timer to determine when to change the image on the sprite. Here's a simple timer:
` Set a timer
tim=timer()
do
` Check if 500 milliseconds is past (half a second)
if timer()>tim+500
` Change to the next frame number
inc Frame
` Check if the frames are within 1 to 15
if Frame=16 then Frame=1
` Show the frame switch
print "Switch to Frame "+str$(Frame)
` Reset timer
tim=timer()
endif
loop