Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_ch3_b4_chef_controller_Create_0

(view raw script w/o annotations or w/e)
1
gamestart = false;
2
gameover = false;
3
timer = 22;
4
timer_max = timer;
5
6
start_game = function()
7
{
8
    alarm[0]
 = 30;
gml_Object_obj_ch3_b4_chef_controller_Alarm_0.gml

if (!gamestart) gamestart = true; if (gameover) exit; timer--; alarm[0]
 = 30;
if (timer <= 0) { gameover = true; with (obj_ch3_b4_chef_kris) { image_speed = 0; vspeed = 0; hspeed = 0; gravity = 0; } with (obj_ch3_b4_chef_fire) { image_speed = 0; vspeed = 0; hspeed = 0; gravity = 0; } }
9
    with (instance_create(0, -16, obj_ch3_b4_chef_spawner))
10
        alarm[0]
 = 5;
gml_Object_obj_ch3_b4_chef_controller_Alarm_0.gml

if (!gamestart) gamestart = true; if (gameover) exit; timer--; alarm[0]
 = 30;
if (timer <= 0) { gameover = true; with (obj_ch3_b4_chef_kris) { image_speed = 0; vspeed = 0; hspeed = 0; gravity = 0; } with (obj_ch3_b4_chef_fire) { image_speed = 0; vspeed = 0; hspeed = 0; gravity = 0; } }
11
};