The "vngen_char_modify_style" Function

Syntax

vngen_char_modify_style(name, col1, col2, col3, col4, alpha, duration, [ease]);
ArgumentTypeDescription
namestringThe ID of the character to modify (or keyword all for all characters)
col1colorThe top-left gradient color, where c_white is default
col2colorThe top-right gradient color, where c_white is default
col3colorThe bottom-right gradient color, where c_white is default
col4colorThe bottom-left gradient color, where c_white is default
alphareal (0-1)The alpha transparency value, where 1 is default and 0 is fully transparent
durationrealSets the length of the modification transition, in seconds
[ease]integer/macroOptional: Sets the ease mode to perform the transition in

Description

Applies a four-color gradient and transparency modifications to the input entity ID. Color values can be input using GameMaker Studio's built-in color constants or functions like VNgen's make_color_hex_to_rgb.

All modifications made with this script are permanent and will persist until another modification is performed. This script cannot be performed simultaneously with other modification actions operating on the same entity ID.

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

Example

vngen_event() {
vngen_char_modify_style("John Doe", c_yellow, c_yellow, c_orange, c_orange, 1, 2);
}

This will apply a warm set of colors to the character "John Doe", suggesting an evening environment.