• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

load sprite from URL

RizbIT

Member
i want to set the sprite for an object from a URL

So the image (GIF) is downloaded then added and then when download using async event set it as the objects sprite index.

But how does it work. Is that downloaded GIF store in the apps asset folder on the device?

When the app is restarted will I have to download the sprite again?

I want it so the new sprite only has to be downloaded once, after that the next time the app is started i just use the downloaded sprite, any examples of how to do this?

Thanks
 

Tsa05

Member
http_get_file will download files for you. sprite_add will bring downloaded files into your game as sprites.
You will probably also want your game to have some way of keeping track of which files have been added, and what they go with--that can be a downloaded file, too.
 
Top