Changing room after boss battle

A

Arthur Baronov

Guest
I added a boss battle at the end of my first game. After I defeat the boss, the game goes to an outro room with some text narrative, and then gives you the option to go back to the main menu. Everything works, but is it possible to wait three seconds after the boss is destroyed before going to the next room?

Currently, I created a destroy event for the boss object. In the destroy event, I have the code "room_goto(r_script_outrow);" This works but with no pause.

I tried creating an alarm in the destroy event: "alarm[1] = room_speed*3;"

and then writing "room_goto(r_script_outrow);" in the alarm[1] event but this did not work.
 

NightFrost

Member
Since the boss instance is destroyed, it doesn't exist to run the alarm and switch room. You should have some other object (even one just created for that purpose) do the countdown and room switch.
 
Top