• Runtimes
  • Preload animation - Corona/Lua

Hi Spiners,

Any tips on how I might preload animation graphics for upcoming scene? I think I can parse the JSON and grab attachments. But I have a lot of dynamically resolved images (the animation is a user-customizable avatar) so it's not a simple as just grabbing attachments from the animation's json file.

What I'd like to do (conceptually) is to run the preloaded animation off stage but not have the graphics automatically unload when slots change. I can tweak the lua code to do that if a preload flag is set. But I'm not sure if this is best way to approach the problem.

Thanks for any advice!

JB Tellez

Related Discussions
...
6 dana kasnije

Removes the display object and frees its memory, assuming there are no other references to it.

So the way to hold onto the memory is the maintain a reference. Looks like I'll need to tweak some of the runtime code if I want to go this way. Thanks for checking.