Deltarune (Chapter 5) script viewer

← back to main script listing

gml_Object_obj_climb_shi_Step_0

(view raw script w/o annotations or w/e)
1
timer++;
2
if (con == 0)
3
{
4
    if (timer == 35)
5
    {
6
        sprite_index = spr_scarecrow_smear;
7
        con = 1;
8
        timer = 0;
9
    }
10
}
11
if (con == 1)
12
{
13
    if (timer == 6)
14
    {
15
        sprite_index = spr_scarecrow_idle;
16
        con = 0;
17
        timer = 0;
18
        var bul = instance_create(x + (20 * image_xscale), y + 60, obj_climb_bullet_shuriken);
19
        with (bul)
20
        {
21
            permanent = false;
22
            falseloop = 0;
23
            sprite_index = spr_shuriken_small;
24
            hspeed = 2 * -other.image_xscale;
25
        }
26
    }
27
}