Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_mike_attack_controller_Alarm_2

related scripts: Alarm_0 • Alarm_1 • Alarm_10 • Alarm_11 • Alarm_2 • Alarm_3 • Alarm_4 • Alarm_5 • Create_0 • Draw_0 • Step_0

(view raw script w/o annotations or w/e)
1
with (obj_mike_catbasket)
2
{
3
    
scr_doom
scr_doom

function
scr_doom(arg0 = id, arg1)
{ with (instance_create_depth(0, 0, 0, obj_doom)) { alarm[0]
 = arg1;</code>
gml_Object_obj_mike_attack_controller_Alarm_0.gml

flash = -flash; alarm[0]
 = clamp(point_distance(counter, 0, 0, 0) / 10, 4, 10);
target = arg0; persistent = arg0.persistent; } }
(self, 60);
4
    act = 3;
5
}
6
with (obj_mike_grabcat)
7
{
8
    if (speed == 0)
9
        hspeed = 4;
10
    friction = -1;
11
    action = 4;
12
    wall_destroy = 1;
13
    image_blend = c_white;
14
    sprite_index = spr_mike_cat_walk;
15
}
16
with (obj_mike_controller)
17
    hand_type = 0;