Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_floorSwitcher_Create_0

(view raw script w/o annotations or w/e)
1
activeFloor = 0;
2
switchFloors = 1;
3
floor0 = layer_get_id("TILES_FLOOR_0");
4
floor1 = layer_get_id("TILES_FLOOR_1");
5
floor2 = layer_get_id("TILES_FLOOR_2");
6
if (floor0 != -1)
7
    floor0depthmem = layer_get_depth(floor0);
8
if (floor1 != -1)
9
    floor1depthmem = layer_get_depth(floor1);
10
if (floor2 != -1)
11
    floor2depthmem = layer_get_depth(floor2);