Animated .GIFs in the game

spoke01
14 Jun 2013, 11:50
I would like to include a 242kb size animated .GIF file at a certain point in my game.

Questions:
1. Is there a simple way to just PRE-LOAD the file into memory at the start of the game?
2. What would be the best way to call-up and display the file when it is needed?
3. Since the event would happen only once, can the .GIF be deleted from memory (after it runs) while the game continues on?

I'm familiar with .GIFs, but not their use in this program.

Thanks ahead of time!

Liam315
14 Jun 2013, 13:15
I've never used an animated gif but I assume they work within the game exactly the same as normal images do. So to answer your questions:

1 - Copy the gif you want to use into the same folder that your game file is. Although it will be separate for the moment, when you publish the game the gif will be bundled into the same file as the rest of the game.
2 - To call up and display the image, use the script "show a picture." Select your gif and you should be good to go.
3 - I don't really know what you mean by delete it from memory. Using the method above the picture will be displayed as part of the text, i.e. it won't stay fixed in position, it will roll up and out of sight the same way that the rest of your text does. So long as you only call it once in the script it won't be displayed again.