Frame from an Animated Image?

BlitzMax Forums/BlitzMax Programming/Frame from an Animated Image?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Not really sure what you're trying to do but this takes the second 'cell' in an animimage and loads it into a single image.
Graphics 640 , 480
Local animimage:TImage = LoadAnimImage("animstrip5.png" , 32 , 32 , 0 , 5)
Local image : TImage = LoadImage(animimage.pixmaps[1])
DrawImage image , 0 , 0
Flip
WaitKey()

This is the important bit
Local image : TImage = LoadImage(animimage.pixmaps[n])

where n is the the cell (e.g. 0 is first, 1 is second) you want to load.