1 decade ago by John
So I'm making a game for ios, and because of the amount of images in it I'm having a lot of lag. So I need to know how to only load the resources I need for the menus at the start. Then I need to load the resources for a level and the entities when people click to play it, and then unload the previous level's resources and entities.
I kinda know how to unload the level's resources using Dominic's method:
But how would I do this for an entity?
I kinda know how to unload the level's resources using Dominic's method:
delete backgroundMap.tiles; delete ig.Image.cache['media/foo.png']; delete LevelFooResources[0];
But how would I do this for an entity?