So I've got this weird thing going where I need my sprites to be global to keep their instance variables across multiple layouts, but the first time I load in to a layout they don't appear. If I go to another layout and load back they appear, but I really need it to work first time. Any tips?
Develop games in your browser. Powerful, performant & highly capable.
Global sprite will not appear by itself on the first layout, you need to put it on that layout in the editor. (or create it in runtime)
Make sure you only put it on one layout, otherwise you may have end up with several instances of that sprite, because global objects are not destroyed when you switch between layouts.