1. Hey! Guest! The 32nd GMC Jam will take place between Feb 22nd, 12:00 UTC (Friday noon) and Feb 25th, 12:00 UTC (Monday noon). Why not join in! Click here to find out more!
    Dismiss Notice

Changing room after boss battle

Discussion in 'Programming' started by Arthur Baronov, Jan 18, 2019.

  1. Arthur Baronov

    Arthur Baronov Member

    Jan 18, 2019
    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.
  2. NightFrost

    NightFrost Member

    Jun 24, 2016
    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.
    Arthur Baronov likes this.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice