Deltarune (Chapter 1) script viewer

← back to main script listing

gml_Object_obj_thrashmaker_event_Create_0

(view raw script w/o annotations or w/e)
1
con = 1;
2
x = 400;
3
y = 300;
4
bush_debris = 0;
5
bush = 
scr_dark_marker
scr_dark_marker

function
scr_dark_marker(arg0, arg1, arg2)
{ thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; image_xscale = 2; image_yscale = 2; } return thismarker; }
(305, 20, spr_susiebush);
6
with (bush)
7
{
8
    depth = 850000;
9
    image_speed = 0;
10
    image_index = 0;
11
}
12
for (i = 0; i < 6; i += 1)
13
    stat[i] = 0;
14
if (global.flag[226 made_thrash_machine] == 1)
15
{
16
    with (bush)
17
        image_index = 1;
18
    event_user(1);
19
    con = 999;
20
    instance_destroy();
21
}