Skip to main content

The "vngen_prompt_replace" Function

Syntax#

vngen_prompt_replace(id, sprite_idle, sprite_active, sprite_auto, duration, [ease]);
ArgumentTypeDescription
idreal/stringThe ID of the prompt to replace
sprite_idlespriteThe new sprite to draw as a prompt when waiting for user input
sprite_activespriteThe new sprite to draw as a prompt when the typewriter effect is active (or keyword none for none)
sprite_autospriteThe new sprite to draw when auto mode is enabled (or keyword none for none)
durationrealSets the duration of the fade transition, in seconds
[ease]integer/macroOptional: Sets the ease mode to perform the transition in

Description#

Replaces the input entity ID with new sprites and fades the old sprites to the new ones over the input duration.

As with other types of modifications, replacements made with this script are permanent and will persist until another replacement is performed. This script cannot be performed simultaneously with other replacement actions operating on the same entity ID.

See Macros & Keywords for a list of available ease modes.

Example#

if (vngen_event()) {
vngen_prompt_replace("prompt", spr_new, 1);
}