funkyy tharindutpd thanks for the suggestions.
tharindutpd
First, loading everything into memory at the beginning of the game using 1 loader layout <img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked"> that isn't going to work.
I'm making a big game and it would eat up vast amounts of memory. With layout by layout memory management it is fine, but loading everything on
start up will never work. (this is our game: http://www.indiedb.com/games/tokyo-dark)
"show a loader and invisible it at the last line of onload event or load completed event in next layout"
This is what I want to do, but actually it appears to be more difficult than you make it seem.
If you look here: https://www.scirra.com/tutorials/318/ho ... ng-screens
you fine this: " Loader layouts are only ever shown the very first time the game is being downloaded from the web. Since Construct 2 games save to disk so they can work offline, the next time the user plays the game it will load instantly. Even if you update your game, it will still load instantly."
The problem is that due to having a lot of images it is no longer instant.
funkyy
Yeh, I was thinking about something along those lines <img src="{SMILIES_PATH}/icon_idea.gif" alt=":idea:" title="Idea"> , make a separate layout, that starts with only a 'loading image' then in the background, create copies of the large sprites and images from the layout I want to load. -doesn't matter if this causes jank, as it's a loading screen. (Am I right in thinking if images are the same between layouts they stay in memory?) If so, then once I create the bulk of my images in my 'loading layout' I can load up the actual layout without much of a delay? <img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question">
something like this.
[Layout 1] -> [ Layout 2A - display loading icon -(create copies of Layout 3's images, loading them into memory)] -> [Layout 3] -> [ Layout 2B - display loading icon -(create copies of Layout 4's images, loading them into memory)]-> [Layout 4]
Can anyone see any reason why this wouldn't work? The images can't start inside the loading layout [layout2] and must be loaded (created) into it. otherwise you'd need a loader for the loader. <img src="{SMILIES_PATH}/icon_e_wink.gif" alt=";)" title="Wink"> but if I create them in the loader layout [layout2] will they stay in memory for the next layout [Layout 3]?
Humm... or maybe I'm far off track and talking nonsense?
Any more suggestions on better ways to do this would be great!