Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_sneo_rotatingwall_bomb_Step_0

(view raw script w/o annotations or w/e)
1
if (global.turntimer < 1)
2
    instance_destroy();
3
if (timer == 0 && i_ex(obj_sneo_wall_controller_new))
4
    x += obj_sneo_wall_controller_new.wallspeed[wallnumber];
5
if (timer > 0)
6
    timer++;
7
if (timer == 6)
8
{
9
    snd_play(snd_bomb);
10
    snd_stop(bomsfallsfx);
11
    sprite_index = spr_mettaton_bomb2;
12
    image_index = 0;
13
    instance_create(x, y, obj_shake);
14
    hitbox1 = instance_create(x, y, obj_mettaton_bomb_hitbox);
15
    hitbox1.image_xscale = 500;
16
    hitbox1.image_yscale = 0.5;
17
    hitbox2 = instance_create(x, y, obj_mettaton_bomb_hitbox);
18
    hitbox2.image_xscale = 0.2;
19
    hitbox2.image_yscale = 500;
20
}
21
if (timer == 12)
22
    instance_destroy();