UN-loading an image

Monkey Forums/Monkey Programming/UN-loading an image

Lindsay(Posted 2014) [#1]
Each time the player starts a new game, certain images will be loaded at random. How do I dispose of images from the last game I no longer need in memory?


Goodlookinguy(Posted 2014) [#2]
http://www.monkey-x.com/docs/html/Modules_mojo.graphics_Image.html#Discard

Local image := CreateImage(10,10)
image.Discard()



Lindsay(Posted 2014) [#3]
Ack, it was right in front of me and I couldn't see it - must be time for a break. Thanks :)