Hello all,
We've been trying to optimize our construct3 game for web because it has 200Mb of images but so far failed to find ways to accomplish this.
The problem is that if we create the sprites with animations via construct3 editor, the compiled and optimized game size is near 200Mb and it takes 1.7 minutes on average internet connection to load.
Because our game is split by scenes, we though that we can load the game animations from the server when entering a scene.
However there isn't any clear way to do that... Here are our findings so far:
* construct.net/en/forum/construct-3/how-do-i-8/best-practices-dealing-high-167471 => it says that it is possible to load images and to set them per frame into sprites, however we are having like 300 images, so doing this manually is really a long and error prone process which eliminates any future maintainability and changes.
* construct.net/en/make-games/manuals/construct-3/scripting/guides/fetching-project-files => this hints that we can fetch project files, however how we can set them per sprite frame via the runtime API is unclear.
* found a bug report which relates to similar problem without any resolution: github.com/Scirra/Construct-bugs/issues/2098
* github.com/Scirra/Construct-bugs/issues/3201 => looks like the whole idea to use load Image from url isn't good approach
* this is very similar to what is needed construct.net/en/forum/construct-3/general-discussion-7/loading-sprite-sheet-url-149777 => however without any resolution too
Is there any way to resolve our problem and can you help me step by step to do that?
On theory what I understood is that we should create different layouts and put sprites with the images related to them. Is this sufficient for construct3 to load only the images related to the current layout?
After testing it out -> seems not because all the images from all the layouts are seen preloaded. See it yourself here:
drive.google.com/file/d/17biABeTLkpV6mqVzp3jzdf23q7uTTkYG/view
Any help would be really appreciated coz I'm struggling with this for a week already :)
Kind regards,
Boris