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.08

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

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.

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.

TIP

If you experience a bug where certain sprites have incorrect hardboxes in any Dink engine (sometimes it may happen in FreeDink but not DinkHD, or vise-versa), preload the sequence with preload_seq to fix the issue.