Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_board_actor_Draw_0

(view raw script w/o annotations or w/e)
1
if (sprite_palette != -1)
2
{
3
    pal_swap_set(sprite_palette, current_pal, false);
4
    draw_sprite_ext(sprite_index, image_index, round((x + sinerx + shakex) / 2) * 2, round((y + sinery + shakey) / 2) * 2, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
5
    pal_swap_reset();
6
}
7
else
8
{
9
    draw_sprite_ext(sprite_index, image_index, round((x + sinerx + shakex) / 2) * 2, round((y + sinery + shakey) / 2) * 2, image_xscale, image_yscale, image_angle, color_blend, image_alpha);
10
}