Appearance
preload_seq
Version: Dink Freedink DinkHD YeDink
Prototypevoid preload_seq(int sequence)
preload_seq()
loads the specified graphic sequence into memory if it has not already been loaded.
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.
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
DinkHD
YeDink
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. Using preload_seq
is also sometimes required to fix a bug where sprites created with create_sprite() are drawn with an incorrect hardbox.