How do I keep the file size smaller

Get help using Construct 2

Post » Wed Jun 25, 2014 6:43 pm

shinkan wrote:@DUTOIT what is happening with downloaded files after closing the game? are they stored somewhere on mobile or are they deleted and must be re downloaded next time you start the game?

Good question. I'm not sure - I would imagine it is cached with game data. But honestly I haven't got a clue.

Edit: I see new beta has "File chooser plugin" which allows you to access files from users system. So you could download the files to a location and retrieve it - ??? - this is speculative as I am downloading beta version now, and haven't even tried it.
You think you can do these things, but you can't, Nemo!
Just keep reading.
Just keep learning.
Posts: 1,429
Reputation: 12,753

Post » Sat Jun 28, 2014 11:09 am

@Ashley do you know what is happening with downloaded files after closing the game on mobile? are they stored on device or deleted?
Posts: 2,611
Reputation: 36,844

Post » Sat Jun 28, 2014 11:36 am

Any images or sounds not added in the Construct 2 editor are not included in the offline cache, because there's no way for the editor to know about them. Therefore any images you request are not guaranteed to be saved anywhere. This means you could play the game 3 times in a row and it re-downloads the images every time, or if you go offline then the game fails to run at all. It's best where possible to keep all resources within the Construct 2 editor itself so they can be properly cached and loaded offline.

The best tips to reduce file size are probably the image-related parts from this guide:

In particular:
- duplicate images don't matter, they're deduplicated on export
- spritesheeting can help compress away similar parts of animations
- images with <256 colors will automatically be recompressed to much smaller PNG-8
- use Construct 2's Image Format dialog to manually select JPEG or PNG-8 where appropriate

Selecting JPEG on backgrounds alone can massively reduce the file size.

Don't trust Construct 2's 'estimated download size' too much. Everything that happens on export is so complex that it's impossible to accurately predict what it will result, so for best results from time to time you should actually export the project and see how big it ends up.

Note this is specifically to do with the download size, not memory use. Don't get them confused! Although they tend to roughly correlate, it is not helpful to be looking at memory use if you're actually trying to measure the download size. @A0Nasser posted a screenshot of the debugger which only shows memory use and won't tell you anything about the file size.
Scirra Founder
Posts: 25,198
Reputation: 200,327

Post » Sat Jun 28, 2014 2:02 pm

Thanks @ashley
Posts: 197
Reputation: 2,537


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 3 guests