By George — February 11, 2018
Used at the beginning of draw scripts to recolor the following draw calls according to the character’s color profile. Must be followed by shader_end() Reference→
Example, called from post_draw.gml:
shader_start();
draw_sprite_ext( sprite_get( "cool_hat" ), hat_image_index, x, y );
shader_end();
Categories: Functions, Programming, Workshop | Comments: 0
By George — February 11, 2018
Sets the maximum numbers of alternate color palettes that your character can use.
Argument | Type | Description |
---|
num | :real | The number of alternate color palettes to set. Must be a value between 6 and 16 |
Example, called from colors.gml:
set_num_palettes( 10 );
Categories: Functions, Programming, Workshop | Comments: 0
By George — February 11, 2018
Returns the y position (top side) of the current viewport.
Example, called from article1_update.gml:
if (y < view_get_yview()) {
instance_destroy();
}
Categories: Functions, Programming, Workshop | Comments: 0
By George — February 11, 2018
Returns the x position (left side) of the current viewport.
Example, called from article1_update.gml:
if (x < view_get_xview()) {
instance_destroy();
}
Categories: Functions, Programming, Workshop | Comments: 0
By George — February 11, 2018
Returns the height of the current viewport.
Example, called from article1_update.gml:
if (y > view_get_yview() + view_get_hview()) {
instance_destroy();
}
Categories: Functions, Programming, Workshop | Comments: 0