Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_rudebuster_anim_Step_0

(view raw script w/o annotations or w/e)
1
if (init == 0 && i_ex(obj_titan_enemy) && obj_titan_enemy.acting == 1.12)
2
{
3
    init = 1;
4
    anim = instance_create(obj_titan_enemy.gerson.x + 0, obj_titan_enemy.gerson.y, obj_rudebuster_anim_gerson);
5
    anim.target = target;
6
}
7
image_index = t / 2;
8
if (!dualbuster)
9
{
10
    if (i_ex(target))
11
    {
12
        if (t == 10)
13
        {
14
            snd_play(snd_rudebuster_swing);
15
            blast = instance_create(x + 40, y + 30, obj_rudebuster_bolt);
16
            blast.caster = caster;
17
            blast.target = target;
18
            blast.damage = damage;
19
            blast.star = star;
20
            if (red == 1)
21
                blast.red = 1;
22
        }
23
    }
24
    if (t >= 28)
25
    {
26
        var makevis = true;
27
        if (global.chapter == 4)
28
        {
29
            with (obj_jackenstein_enemy)
30
                makevis = false;
31
        }
32
        if (makevis)
33
        {
34
            with (obj_herosusie)
35
                visible = 1;
36
        }
37
        instance_destroy();
38
    }
39
}
40
if (dualbuster)
41
{
42
    if (i_ex(target))
43
    {
44
        if (t == 14)
45
        {
46
            snd_play(snd_rudebuster_swing);
47
            blast = instance_create(x + 40, y + 30, obj_rudebuster_bolt);
48
            blast.caster = caster;
49
            blast.target = target;
50
            blast.damage = damage + 500;
51
            blast.star = star;
52
            if (red == 1)
53
                blast.red = 1;
54
        }
55
    }
56
    if (t >= 32)
57
    {
58
        with (obj_herosusie)
59
            visible = 1;
60
        instance_destroy();
61
    }
62
}
63
t++;