#n00b question. How do you delay in seconds to play sound before quitting?

3 messages · Page 1 of 1 (latest)

last urchin
#

I have placed this code in the mouse left click button event

/// @description Insert description here
// You can write your code in this editor
audio_play_sound(Quit_Game_Button_Push,1000,false);

game_end();

But it quits before playing the audio. How do I make the quit code not execute for a long enough for 5 seconds play of that audio clip? Thanks in advance.

blazing depot
#
call_later(5, time_source_units_seconds, game_end);
young wedge
#

TIL call_later() exists