Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_floorswitch_Create_0

(view raw script w/o annotations or w/e)
1
actsound = 0;
2
image_speed = 0;
3
image_index = 0;
4
pressed = 0;
5
presscount = 0;
6
init = 0;
7
scr_size
scr_size

function
scr_size(arg0 = image_xscale, arg1 = image_yscale, arg2 = id)
{ with (arg2) { image_xscale = arg0; image_yscale = arg1; } }
(2, 2);
8
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
(id, -120);