Skip to main content

The "vngen_textbox_replace" Function

Syntax#

vngen_textbox_replace(id, sprite, duration, [ease]);
ArgumentTypeDescription
idreal/stringThe ID of the textbox to replace
spritespriteThe new sprite to draw as a textbox
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 a new sprite and fades the old sprite to the new one 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_textbox_replace("tb", spr_new, 1);
}