Undertale script viewer

← back to main script listing

gml_Object_obj_bulletbomb_Step_0

(view raw script w/o annotations or w/e)
1
if (shot > 0)
2
{
3
    x = nowx;
4
    y = nowy;
5
    image_speed = 1;
6
    shot2 += 1;
7
    if (shot2 >= 5)
8
    {
9
        playdo = 0;
10
        audio_stop_sound(myloop);
11
        snd_play(snd_bomb);
12
        if (!instance_exists(obj_shaker))
13
            scr_shake
scr_shake

instance_create(0, 0, obj_shaker); obj_shaker.hshake = argument0; obj_shaker.vshake = argument1; obj_shaker.shakespeed = argument2;
(3, 3, 2);
14
        instance_create(x, y, obj_plusbomb_explosion);
15
        visible = false;
16
        shot2 = -1;
17
        shot = -1;
18
    }
19
}