Deltarune (Chapter 1) script viewer

← back to main script listing

gml_Object_obj_rudebuster_anim_Step_0

(view raw script w/o annotations or w/e)
1
image_index = t / 2;
2
if (t >= 28)
3
{
4
    with (obj_herosusie)
5
        visible = 1;
6
    instance_destroy();
7
}
8
if (instance_exists(target))
9
{
10
    if (t == 10)
11
    {
12
        snd_play(snd_rudebuster_swing);
13
        blast = instance_create(x + 40, y + 30, obj_rudebuster_bolt);
14
        blast.caster = caster;
15
        blast.target = target;
16
        blast.damage = damage;
17
        blast.star = star;
18
        if (red == 1)
19
            blast.red = 1;
20
    }
21
}
22
t += 1;