LoadAnimImage

BlitzMax Forums/BlitzMax Programming/LoadAnimImage

Check drawimage command, it should be : drawimage (image,x,y,frame)

try this :

Graphics 120,80,0
Global fntImage:TImage
fntImage = LoadAnimImage ("digits.png",26,32,0,12,FILTEREDIMAGE)

Global frame:Int = 0
While Not KeyDown(key_escape)
	Cls
		DrawImage  fntImage,10,10,frame
		frame = frame + 1
		If frame = 12 Then frame =0
	Flip
	WaitKey
Wend