Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_chefs_kris_Collision_obj_chefs_food

(view raw script w/o annotations or w/e)
1
if (obj_chefs_game.gameover)
2
    exit;
3
if (firewait || stun)
4
    exit;
5
if (other.y >= y && !other.caught && !other.on_fire && !other.thrown)
6
{
7
    audio_stop_sound(snd_bump);
8
    snd_play(snd_bump);
9
    with (other)
10
    {
11
        if (x < other.x)
12
            hspeed = -14;
13
        else
14
            hspeed = 14;
15
    }
16
    exit;
17
}
18
if (!other.caught)
19
{
20
    add_to_stack(other);
21
    exit;
22
}