Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_thrash_bodyhitbox_Other_15

(view raw script w/o annotations or w/e)
1
event_inherited();
2
if (active && obj_thrashmachine.duckmode)
3
{
4
    explosion_marker = instance_create(x + 10, y + 20, obj_animation_dx);
5
    explosion_marker.image_yscale = 3;
6
    explosion_marker.image_xscale = 3;
7
    explosion_marker.depth = depth - 5;
8
    explosion_marker.sprite_index = spr_realisticexplosion;
9
    explosion_marker.endtime = 30;
10
    with (explosion_marker)
11
        snd_play(snd_badexplosion);
12
    obj_rouxls_enemy.advancespeed = 0;
13
    obj_rouxls_enemy.wheel_difficulty = 0;
14
    deathtimer = 5;
15
    active = 0;
16
}