Code: Select all
MySprite = LoadSprite(#PB_Any, "sprite.bmp")
DisplaySprite(MySprite, x, y)
Code: Select all
MySprite = LoadSprite(#PB_Any, "sprite.bmp")
DisplaySprite(MySprite, x, y)
Code: Select all
ReleaseSprite(MySprite)
Code: Select all
For i = 0 to 99
MySpriteIds(i) = LoadSprite(#PB_Any, "sprite" + str(i) + ".bmp")
Next
...
...
DisplaySprite(MySpriteIds(n), x, y)
It's simply FreeSprite() which does this.GedB wrote:What about releasing the Handles?
For example, will there be something like ...... which will release the handle held by MySprite and make it available for use when #PB_Any is used again?Code: Select all
ReleaseSprite(MySprite)
Code: Select all
myID = LoadSprite(#PB_Any, "sprite.bmp")
For i=1 to 100
LoadSprite(i, "sprite" + str(i) + ".bmp")
Next