Hello community! I’m in the final phase of my game production and I have one simple question. How can I load LOCAL images and spritesheets before my game starts? I have already managed to make loading screen that loads images and spritesheets which are used in the whole program/code.
This question refers to loading variables that are images and spritesheets which appear in local functions.
For an example:
function someFunctionThatIsFrequentlyCalled(self, event) if (event.other.name == "eventName") then local someObject = sprite.newSpriteSheet("someLocalSpriteSheet.png", 40, 40) ... ... ... ... end end
So, how can I load “someObject” that represent sprite sheet image in my loading part of game (before start of the game)?
