Undertale script viewer

← back to main script listing

gml_Object_obj_mercybutton_shatter_Other_10

(view raw script w/o annotations or w/e)
1
if (instance_exists(obj_shaker) == 0)
2
    scr_shake
scr_shake

instance_create(0, 0, obj_shaker); obj_shaker.hshake = argument0; obj_shaker.vshake = argument1; obj_shaker.shakespeed = argument2;
(6, 6, 2);
3
snd_play(snd_impact);
4
snd_play(snd_break2);
5
i = 0;
6
visible = false;
7
repeat (2)
8
{
9
    i = 0;
10
    repeat (6)
11
    {
12
        iii = instance_create(x + 55, y + 21, obj_mercybutton_part);
13
        iii.image_index = i;
14
        iii.hspeed = -14 - random(26);
15
        iii.friction = 0.1;
16
        iii.aa = 7 + random(4);
17
        i += 1;
18
    }
19
    repeat (5)
20
    {
21
        iii = instance_create(x + 55, y + 21, obj_mercybutton_part);
22
        iii.image_index = i;
23
        iii.hspeed = 10 + random(30);
24
        iii.friction = 0.1;
25
        iii.aa = -8 - random(4);
26
        i += 1;
27
    }
28
}
29
instance_destroy();