The "vngen_attach_modify_style" Function
#
SyntaxArgument | Type | Description |
---|---|---|
name | string | The ID of the attachment parent character |
id | real/string | The ID of the attachment to modify (or keyword all for all attachments) |
col1 | color | The top-left gradient color, where c_white is default |
col2 | color | The top-right gradient color, where c_white is default |
col3 | color | The bottom-right gradient color, where c_white is default |
col4 | color | The bottom-left gradient color, where c_white is default |
alpha | real (0-1) | The alpha transparency value, where 1 is default and 0 is fully transparent |
duration | real | Sets the length of the modification transition, in seconds |
[ease] | integer/macro | Optional: Sets the ease mode to perform the transition in |
#
DescriptionApplies 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.
#
ExampleThis will give the attachment a yellow/orange gradient from top to bottom. Use attachments as clothing to apply custom colors in real-time!