Deltarune (Chapter 5) script viewer

← back to main script listing

gml_Object_obj_climb_scarecrowthrowshuriken_Create_0

(view raw script w/o annotations or w/e)
1
con = 0;
2
image_speed = 0;
3
image_xscale = 2;
4
image_yscale = 2;
5
thrown = 0;
6
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
();
7
throwtime = 45;
8
throwspeed = 4;
9
throwcount = 1;
10
throwwait = 5;
11
12
makeShuriken = function()
13
{
14
    var shuriken = instance_create(x + 60, y + 122, obj_climb_bullet_shuriken_vert);
15
    with (shuriken)
16
    {
17
        vsp = other.throwspeed;
18
        depth = other.depth + 1;
19
        damage = 20;
20
    }
21
};