GLBasic forum

Main forum => GLBasic - en => Topic started by: bigsofty on 2008-Jan-23

Title: Unloading a LOADSPRITE
Post by: bigsofty on 2008-Jan-23
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?
Title: Unloading a LOADSPRITE
Post by: Quentin on 2008-Jan-23
LOADSPRITE "test.bmp", 1        to load it

LOADSPRITE "", 1                     to unload it and free memory
Title: Unloading a LOADSPRITE
Post by: bigsofty on 2008-Jan-23
Cool, thank you for the tip Quentin,