Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_dw_ch3_b3bs_zappera_trashswitch_Create_0

(view raw script w/o annotations or w/e)
1
timer = 0;
2
con = 0;
3
image_speed = 0;
4
scr_depth
scr_depth

function
scr_depth()
{ if (argument_count > 0) { with (argument0) depth = 100000 - ((y * 10) + (sprite_height * 10)); } else { depth = 100000 - ((y * 10) + (sprite_height * 10)); } }
();
5
image_index = 0;
6
if (global.flag[1137 found_trash_switch] > 0)
7
    image_index = 1;
8
if (global.flag[1137 found_trash_switch] == 1)
9
    con = 4;
10
if (global.flag[1137 found_trash_switch] == 2)
11
    con = 10;
12
blackout = 0;