Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_organ_enemy_vertical_pillar_Step_0

(view raw script w/o annotations or w/e)
1
with (obj_dmgwriter_boogie)
2
{
3
    killtimer = 0;
4
    killactive = 0;
5
    kill = 0;
6
}
7
if (!i_ex(obj_growtangle))
8
    event_inherited();
9
touchingplayer--;
10
if (touchingplayer > 0)
11
{
12
    with (parentid)
13
        idlesprite = spr_organik_body;
14
    highlight += 10;
15
    var _highlight = highlight;
16
    if (_highlight > 70)
17
        _highlight = 70;
18
    with (parentid)
19
        harmonize_highlight = 2;
20
    particletimer++;
21
    if (particletimer == 3)
22
    {
23
        particletimer = 0;
24
        part = instance_create(obj_heart.x + random(20), obj_heart.y + random(20), obj_organ_enemy_particle);
25
        part.depth = obj_heart.depth - 100;
26
        part.image_alpha = 1;
27
    }
28
}
29
else if (green == 1)
30
{
31
    highlight = 0;
32
    image_blend = c_lime;
33
    with (obj_organ_enemy)
34
        snd_volume(harmon_sound, 0, 10);
35
}
36
else
37
{
38
    with (obj_organ_enemy)
39
        snd_volume(harmon_sound, 0, 10);
40
}