Save Images from URL permanently

0 favourites
  • 7 posts
From the Asset Store
500 monsters and creatures images for card games - Set 1
  • Hi!

    I have another question for the C2 gurus.

    I don't want my app to become too big. I thought it would be a good idea to load big images of the game only when the player needs them.

    This is no problem.

    But now I want to save the loaded images permanently on the mobile device, so the player has to load them only once.

    Is this possible? Maybe with a plugin?

  • Ashley : Could you give me a hint if this is possible?

    I have really huge images and it would be awesome when I could load them while the game is running and the device is offline.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • You cannot make the game download assets when needed (it will download all at once), however, C2 create an offline.appcache, this file makes the app totally offline after downloaded for the first time (it needs a little time to store everything permanently after the game is launched though), and so your app will load instantly next time.

    However keep in mind that the update to new version of the app should be taking care off, More informations about this can be found.

    For your images, try to not have them too big when not needed, also you can change the compression to lossy PNG-8 on some images, could save so download size.

  • I don't want to download them. Currently I'm planning to have a mobile app with cocoonjs. I was wondering if it's maybe possible to already store the images in the app but load them during gameplay, when needed.

  • This is not supported. You should not use lots of large images anyway. See Remember not to waste your memory.

  • Ashley: Is it just not supported or not possible? Would it be possible with a plugin?

  • You can load sprite images from a URL.. that's about it but if your images are static that's enough. Storing them permanently isn't possible though without jumping through some crazy hoops (like writing a custom plugin)

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)