Skip to content

preload_seq

Prototypevoid preload_seq(int sequence)

preload_seq() loads the specified graphic sequence into memory if it has not already been loaded.

Dink
1.07

This command was recommended before playing a sequence or creating a sprite that may be new. Otherwise, the sprite could be invisible for a brief amount of time.

Dink
1.08
Freedink
all
YeDink
all

The game will automatically load any sequences on-the-fly without delay. However, this will cause a slight pause as the game loads the sequences, so you may want to keep using preload_seq() in the main() procedure of sprites with several animations to prevent this small pause.

Note:

Dink
HD

n DinkHD preload_seq() does not do anything. However it may be required in some situations due to DinkHD reaching the graphics allocation limit and purging graphics from memory. As a work-around use init() to load sequences before using them if you notice this happening.

If preload_seq() is used in the main() procedure of a screen's base script (before any wait() commands), the Please Wait banner will be displayed as the game loads the necessary graphics.