Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_mike_grabcat_pluey_Collision_obj_mike_raindrop

(view raw script w/o annotations or w/e)
1
if (!(action == 1 || action == 5))
2
    exit;
3
if (other.harmless)
4
    exit;
5
with (other)
6
    instance_destroy();
7
action = 5;
8
snd_play_pitch(snd_meow, 1.4);
9
var s = snd_play_volume(snd_wetstep, 0.8);
10
snd_pitch(s, 1.1);
11
with (obj_mike_controller)
12
{
13
    if (hand_target != -4 && i_ex(hand_target) && hand_target.id == other.id)
14
    {
15
        hand_type = 0;
16
        hand_target = -4;
17
    }
18
}
19
hspeed = -12;
20
vspeed = -6;
21
sprite_index = spr_mike_cat_attack;
22
image_xscale = -1;
23
image_speed = 0;
24
is_launched = false;
25
with (
scr_marker
scr_marker

function
scr_marker(arg0, arg1, arg2)
{ thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; } return thismarker; }
(x, y, spr_mike_raindrop_hit))
26
{
27
    image_xscale = 2;
28
    image_yscale = 2;
29
    image_speed = 0.5;
30
    
scr_doom
scr_doom

function
scr_doom(arg0 = id, arg1)
{ with (instance_create_depth(0, 0, 0, obj_doom)) { alarm[0] target = arg0; persistent = arg0.persistent; } }
(self, 7);
31
}