Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_gerson_cane_bullet_Collision_obj_heart

(view raw script w/o annotations or w/e)
1
if (con == 0)
2
{
3
    snd_play(snd_wing);
4
    image_alpha = 0.75;
5
    con = 1;
6
    hitcount++;
7
alarm[0]
8
    if (hitcount == 1)
9
    {
10
        xtarget = obj_growtangle.x + 45;
11
        ytarget = obj_growtangle.y - 45;
12
        with (obj_dbulletcontroller)
13
        {
14
            n = 1;
15
            special++;
16
        }
17
    }
18
    if (hitcount == 2)
19
    {
20
        xtarget = obj_growtangle.x - 45;
21
        ytarget = obj_growtangle.y - 45;
22
        with (obj_dbulletcontroller)
23
        {
24
            n = 1;
25
            special++;
26
        }
27
    }
28
    if (hitcount == 3)
29
    {
30
        xtarget = obj_growtangle.x - 45;
31
        ytarget = obj_growtangle.y + 45;
32
        with (obj_dbulletcontroller)
33
        {
34
            n = 1;
35
            special++;
36
        }
37
    }
38
    if (hitcount == 4)
39
    {
40
        xtarget = obj_growtangle.x + 45;
41
        ytarget = obj_growtangle.y + 45;
42
        hitcount = 0;
43
        with (obj_dbulletcontroller)
44
        {
45
            n = 1;
46
            special++;
47
        }
48
    }
49
}