FreeSprite

Top  Previous  Next

Syntax

FreeSprite(sprite as POINTER)

Description

Deletes the sprite specified including all image frames.

Parameters

sprite - A sprite pointer returned by the LoadSprite function

Return value

None

Remarks

The sprite pointer is invalid after a this function is used. It must be reloaded with LoadSprite if you wish to reuse it. All sprites must be freed before the screen is called or memory loss will occur.

See Also: LOADSPRITE

Example usage

FreeSprite badguy