Hi
Is there a way to load an object into a scene as needed?
For example, my player sprites consists of about forty images right now, and I’d like to allow the player to choose between characters at the beginning of the game. Right now I’d put sprite objects for all characters onto the scene, and show only the one selected, but this means I waste resources.
Thinking about having f.e. different visible upgrades like armour, which would need to be drawn for every frame too would lead to quickly escalating resources, for example:
Every character has 40 frames, Armours and Weapons too to fit accordingly:
[3 Characters] * ( [3 Armours] + [4 Weapons] ) * [40 Images] = 840 Images
This would load 21 Sprite Objects, of which only three are shown, in effect loading 18 objects with about 720 images only to have them turned hidden by default… so, is there some way to load only those three I need?
Thanks in advance and all the best,
Daniel