// Create Your Sprite
spr = CreateSprite ( 1, 0 )
// Load Your Sprite Sheet to AddSpriteAnimationFrame Function
AddSpriteAnimationFrame (1,LoadImage ("Sprites\Characters\Player\Idle\axel_rightidle.png" ) )
// width = width of one sprite in your sheet
// Height = Height of one sprite in your sheet
SetSpriteAnimation ( spr, Width, Height, the max Number of frames Your Sprite Sheet)
// Play Animation Frame
// spr = your ID created Sprite
// fFps = speed run animation
// loop = repeat animation after finish. 1 for loop and 0 for don't loop
// startframe = the first animation frame number
// endframe = the last animation frame number
PlaySprite ( spr, fFps, loop, startframe, endframe )
// Update Screen
do
sync
loop
Setvirtualresolution(640,480) ResetTimer() //Create Single multi-frame Image Swap() Drawline(16,16,0,0,0,255,0) Drawline(48,16,63,0,0,255,0) Drawline(80,16,95,31,0,255,0) Drawline(112,16,96,31,0,255,0) Update(0) Render() GetImage(11,0,0,128,32) ClearScreen() //Create Sprite frames from single image id=CreateSprite(11) SetSpriteAnimation(id,32,32,4) //Set Background SetClearColor(50,50,100) SetSpritePosition(id,100,100) //Start Animation PlaySprite(id,10) Do Sync() If Timer()>20 Then Exit Loop End