Deltarune script viewer

← back to main script listing

gml_Object_obj_thrash_bodyhitbox_Step_2

(view raw script w/o annotations or w/e)
1
if (!i_ex(thrash))
2
    return;
3
if (deathtimer > 0)
4
{
5
    deathtimer--
6
    if (deathtimer <= 0)
7
    {
8
        obj_rouxls_enemy.thrashcon = 7
9
        obj_rouxls_enemy.x = obj_rouxls_enemy.remx
10
        thrash.a = 0
11
        instance_destroy()
12
    }
13
}
14
if duckmode
15
{
16
    var thrashcon = obj_rouxls_enemy.thrashcon
17
    if ((thrashcon == 3 || thrashcon == 5) && thrash.stomp != 0)
18
    {
19
        snd_pitch(snd_squeaky, (thrash.stomp == 1 ? 1.25 : 1))
20
        snd_play(snd_squeaky)
21
    }
22
}
23
thrash.stomp = 0
24
x = thrash.xx - 30
25
y = thrash.yy + thrash.s * thrash.walkc + 14