Sprite、SpriteOff


Displays and hides sprites.

Sample

Reference

Command Description Arg1 Arg2 Arg3 Arg4 Arg5 Arg6
Sprite Displays a sprite. Sprite name.
Make sure it is not the same name as another sprite.
Sprite texture file.
If empty, it is the same as the sprite name.
Display layer name.
If empty, there is no change or it uses the default layer.
X coordinate.
If empty, it is set to 0.
Y coordinate.
If empty, it is set to 0.
Fade seconds.
If empty, it is set to 0.2.
SpriteOff Hides a sprite. Name of sprite to hide.
If empty, hides all sprites.
Fade seconds.
If empty, it is set to 0.2.

Sprite Name and Sprite Texture Label

To display only one sprite, it is fine for you to use the same name for the sprite name and sprite texture label, so if you omit Arg2, it automatically uses the same value as Arg1.

However, if you want display multiple sprites, you will need to assign different sprite names to each one of them. This means that you will need to input a particular name in Arg1, and a texture label in Arg2. In addition, the sprite name cannot be the same name as any other object. More specifically, you must not assign the same name as the character name and sprite name. Also, you cannot use “Bg,” “MessageWindow,” and “Graphics” as these are reserved system names.