init_shader

Refreshes the character’s shader values. If you change any of their shader colors (including outline color), you must call this to tell the game the values have changed.

Example, called from update.gml:

// set the character's outline color to red:
outline_color = [ 255, 0, 0 ];
// tell the shader to update the character's colors:
init_shader();
// set the character's outline color back to black, but don't tell the shader that you changed it. This way, if the character action is interrupted before you can manually set the outline color back to black, it will still change back:
outline_color = [ 0, 0, 0 ];