Deltarune (Chapter 5) script viewer

← back to main script listing

gml_Object_obj_bramble_Alarm_1

(view raw script w/o annotations or w/e)
1
if (collision_rectangle(bbox_left - 60, bbox_top - 60, bbox_right + 60, bbox_bottom + 60, obj_plat_player, false, true))
2
{
3
    alarm[1]
 = 10;
gml_Object_obj_bramble_Alarm_1.gml

if (collision_rectangle(bbox_left - 60, bbox_top - 60, bbox_right + 60, bbox_bottom + 60, obj_plat_player, false, true)) { alarm[1]
 = 10;
exit; } with (fademarker) { lerper =
scr_lerpvar("image_alpha", 0, 1, 16);
image_blend = other.image_blend; } mask_index = -4; if (_act != -4 && instance_exists(_act)) _act.blocked = false;
4
    exit;
5
}
6
with (fademarker)
7
{
8
    lerper = 
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ var _id = self; if (!is_struct(self)) _id = id; 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_lerpcol() { if (argument_count < 6) ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]); else ___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]); return ___lerpvar; }
("image_alpha", 0, 1, 16);
9
    image_blend = other.image_blend;
10
}
11
mask_index = -4;
12
if (_act != -4 && instance_exists(_act))
13
    _act.blocked = false;