here is an example that creates an atlas map of 4
to create a single frame image you can change the image by pressing space
move the mouse around and you can see its drawing to the screen
I hope that helps
Setvirtualresolution(640,480)
ResetTimer()
//Create Single multi-frame Image
Swap()
Drawline(16,16,0,0,0,255,0)
Drawline(48,16,63,0,255,255,0)
Drawline(80,16,95,31,255,255,0)
Drawline(112,16,96,31,0,0,255)
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)
framecount=1
SetSpriteFrame(id, framecount)
//create image with size 1024x768 suitable for rendering
CreateRenderImage (1,640,480,0,0)
Do
//set following drawcommands to screen
setrendertoscreen ()
if GetRawKeyPressed(32)
framecount=framecount+1
if framecount>4 then framecount=1
SetSpriteFrame(id, framecount)
endif
SetSpritePositionByOffset(id,GetPointerX(),GetPointerY())
DrawSprite(id)
//set following drawcommands to the renderimage 1
SetRenderToImage (1,0)
sync()
Loop