I'm trying to get my head around the best way to handle large media resources in my game, such as background music or large background images. Typically in games these are loaded into memory only when they are needed, to conserve memory usage. However I'm not sure the best way to do this in GM:Studio. I found some older GML code that did some dynamic loading of music, but when I tried to do that in GM:Studio I couldn't get it to work. The only way I could get it to work was by adding each music track as a sound resource and then reference the appropriate sound for each level.
So my question is, Does GM:Studio take care of this loading and unloading of resources in the background? or does it just load all resources into memory (which seems wasteful)? or do we need to handle that ourselves in the game? If so, how do you do dynamic loading of media in GM:Studio, both sound and images?
Edited by Greg Squire, 01 August 2012 - 05:00 PM.