Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_dw_mansion_bridges_chestSpawner_Step_0

(view raw script w/o annotations or w/e)
1
timer++;
2
if (timer > 5 && !instance_exists(obj_chaseenemy))
3
    spawned = 1;
4
if (spawned == 1)
5
{
6
    spawntimer++;
7
    if (spawntimer == 60)
8
    {
9
        chest = instance_create(x, y, obj_treasure_room);
10
        instance_destroy();
11
    }
12
}