Back to index

Frame Strips are assigned to sprites. They allow a sprite to be animated. A sprite can only be up to 18 frames.



SpriteFrames = FrameStrip.Create( screen, width, height, colormode )

Creates a framestrip, loading it into a variable.

screen can be 1 or 0. 1 = top screen, 0 = bottom screen.
width, height are the width and height of each frame in pixels. The widths and heights must be either 16, 32, or 64.
colormode is the sprite's color mode, as a string. It can be "16", "256", or "16bit".

SpriteFrames is the variable that will be used later to control the frame strip.





SpriteFrames:LoadBin( rawfile, num_of_frames )

Loads a raw image file into a frame strip.

rawfile is the .raw file that will be loaded. (Example: "sprite.raw")
num_of_frames is the number of frames in the framestrip.





SpriteFrames:FreeAll()

Frees all frames in the frame strip from memory.


Back to index