Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_mazecheese_Create_0

(view raw script w/o annotations or w/e)
1
myinteract = 0;
2
image_speed = 0;
3
image_xscale = 2;
4
image_yscale = 2;
5
con = 0;
6
type = 1;
7
read = 0;
8
splatnoise = 0;
9
scr_depth
scr_depth

function
scr_depth()
{ depth = 100000 - ((y * 10) + (sprite_height * 10)); }
();
10
if (x < 800)
11
    type = 1;
12
else
13
    type = 2;
14
if (type == 1 && global.flag[310 first_cheese_destroyed] == 1)
15
{
16
    image_index = 1;
17
    type = 4;
18
}
19
if (global.flag[384 fought_cheese_maze] == 1 && type == 2)
20
{
21
    image_index = 1;
22
    type = 4;
23
}
24
if (room == room_dw_city_postbaseball_2)
25
{
26
    snd_play(snd_impact);
27
    image_index = 0;
28
    fallcon = 0;
29
    type = 2;
30
}