External Exam Download Resources Web Applications Games Recycle Bin

platform | cut scenes | gml

objCutSceneTimer Create

timer_length = room_speed * 4; //3 seconds (i.e. timer starts at 3, last count is 1)
audio_play_sound(soundCutsceneMusic, 0, true);

objCutSceneTimer Step

timer_length = timer_length - 1;
if (timer_length div room_speed == 0){
    audio_stop_sound(soundCutsceneMusic);
    room = room0;	//room to switch to
}

objCutSceneTimer Draw

draw_set_font(font0);
draw_set_color(c_maroon);

draw_text(200,300,"Game starts in:");
draw_text(400,500,timer_length div room_speed);