Unloading a LOADSPRITE

Previous topic - Next topic

bigsofty

Quick question:

I'm using LOADSPRITE(A spritesheet) to grab some sprites from but how do I unload the original sprite (The spritesheet)  from memory once I am finished with it?

I can simply over write the sprite number with some careful planning but I just wondered if there was a more direct approach?
Cheers,

Ian.

"It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration."
(E. W. Dijkstra)

Quentin

LOADSPRITE "test.bmp", 1        to load it

LOADSPRITE "", 1                     to unload it and free memory

bigsofty

Cool, thank you for the tip Quentin,
Cheers,

Ian.

"It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration."
(E. W. Dijkstra)