How do I cleanup an image that has been loaded via LOADSPRITE so that it's index will get reused again by GENSPRITE() ?
Use LOADSPRITE "",x - with x as the ID
FUNCTION FREESPRITE: id#
LOADSPRITE "", id
ENDFUNCTION
what MRTAToad say :)
or something in loadsprite "don´t exist sprite" something like spr_Null, and null it´s nothing in media Folder
I use this mode for a bit more clear in the Code...
The only reason, I can see, to LOADSPRITE "" is to clear memory if new images are being load continuously. Other than that, there's no need to regenerate new GENSPRITE() id to be reused again.