Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_puzzlecloset_tvturnon_Draw_0

(view raw script w/o annotations or w/e)
1
if (view_current == 0)
2
{
3
    if (turnon == 1)
4
    {
5
        turnon = 2;
6
        con = 1;
7
        
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar; } function scr_lerpvar_respect() { if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true; return ___lerpvar; }
("timer", 1, 0, 30, -1, "out");
8
        
scr_doom
scr_doom

function
scr_doom(arg0, arg1)
{ with (instance_create_depth(0, 0, 0, obj_doom)) { alarm[0] target = arg0; } }
(id, 40);
9
    }
10
    draw_sprite_ext(spr_pxwhite, 0, x, y, width, height, 0, merge_color(c_white, c_black, timer), timer);
11
    draw_sprite_ext(spr_pxwhite, 0, x, y, width, (height / 2) * timer, 0, c_black, timer * 2);
12
    draw_sprite_ext(spr_pxwhite, 0, x, y + height, width, -(height / 2) * timer, 0, c_black, timer * 2);
13
    draw_sprite_ext(spr_pxwhite, 0, x, y + ((height / 2) * timer), width, 2, 0, c_white, timer / 4);
14
    draw_sprite_ext(spr_pxwhite, 0, x, (y + height) - ((height / 2) * timer), width, 2, 0, c_white, timer / 4);
15
    if (turnon == 0)
16
        draw_sprite_ext(spr_pxwhite, 0, x, y, width, height, 0, merge_color(c_white, c_black, timer), timer);
17
}