Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_btb04_facescreeneffect_Draw_0

(view raw script w/o annotations or w/e)
1
animindex++;
2
if (active)
3
{
4
    image_blend = #4CFF00;
5
    draw_self();
6
    chromakey_mask_begin(65356, 5);
7
    draw_self();
8
    for (var i = 0; i < 36; i++)
9
        draw_sprite_ext(spr_sneo_bigcircle, 0, x, y, rad, rad, 0 + i, #4CFF00, 0);
10
    image_blend = c_white;
11
    chromakey_mask_end();
12
    chromakey_on();
13
    draw_sprite_tiled_ext(spr_ch3_staticeffect_soft, animindex, 
scr_even
scr_even

function
scr_even(arg0)
{ return round(arg0 / 2) * 2; }
(animindex / 4), 0, 2, 2, c_white, 1);
14
    draw_sprite_tiled_ext(spr_ch3_staticeffect_soft, animindex - 0.5, 
scr_even
scr_even

function
scr_even(arg0)
{ return round(arg0 / 2) * 2; }
(animindex / 4), 0, 2, 2, c_white, 0.5);
15
    chromakey_off();
16
}
17
draw_set_color(c_white);
18
draw_set_alpha(whiteoverlayindex);
19
ossafe_fill_rectangle(camerax() - 40, cameray() - 40, camerax() + 640 + 40, cameray() + 480 + 40, 0);
20
draw_set_alpha(1);