Deltarune script viewer

← back to main script listing

gml_Object_obj_scarableSwatch_Create_0

(view raw script w/o annotations or w/e)
1
if (global.flag[382 dining_hall_complete] == 1 && 217)
2
    instance_destroy();
3
dir = 0;
4
init = 0;
5
image_yscale = 2;
6
con = 0;
7
image_speed = 0;
8
distance = 999;
9
distancechecker = 400;
10
image_index = 0;
11
image_speed = 0.25;
12
scr_depth_alt
scr_depth_alt

function scr_depth_alt() { depth = 100000 - ((y * 10) + ((sprite_height - sprite_yoffset) * 10)); }
();
13
con = 0;
14
verticalDirection = 0;
15
horizontalDirection = 0;