Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_clovertail_intro_Step_0

(view raw script w/o annotations or w/e)
1
if (con == 0)
2
{
3
    image_xscale += 0.5;
4
    timer++;
5
    if (timer == 10)
6
    {
7
        tail = instance_create(camerax() + 320, 0, obj_clovertail);
8
        tail.damage = damage;
9
        tail.target = target;
10
        con = 1;
11
        timer = 0;
12
    }
13
}
14
if (global.turntimer <= 5 && instance_exists(obj_clovertail) && obj_clovertail.con == 1)
15
    obj_clovertail.con = 2;
16
if (global.turntimer <= 0 && con == 1)
17
    con = 2;
18
if (con == 2)
19
{
20
    image_xscale -= 0.5;
21
    timer++;
22
    if (timer == 10)
23
    {
24
        instance_destroy();
25
        obj_clubsenemy.notail = 0;
26
    }
27
}