Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_chefs_food_CleanUp_0

(view raw script w/o annotations or w/e)
1
if (i_ex(obj_tenna_zoom) && obj_tenna_zoom.con == 2)
2
    exit;
3
if (!eaten && firedie)
4
{
5
    with (instance_create(x, y, obj_chefs_fire))
6
    {
7
        falling = false;
8
        speed = 0;
9
alarm[0]
10
        stationary = true;
11
    }
12
}
13
if (eaten)
14
{
15
    repeat (eaten)
16
    {
17
        with (instance_create(x, y, obj_vfx_twinkle))
18
        {
19
            image_speed = 1;
20
            image_xscale = other.image_xscale * choose(1, -1);
21
            image_yscale = other.image_yscale;
22
            speed = 4 + random(3);
23
            direction = irandom(270) - 45;
24
        }
25
    }
26
    exit;
27
}
28
with (instance_create(x, y, obj_flickerdie))
29
{
30
    sprite_index = other.sprite_index;
31
    image_index = other.image_index;
32
    image_speed = 0;
33
    image_xscale = other.image_xscale;
34
    image_yscale = other.image_yscale;
35
}