GMS 2 need help with door please

Discussion in 'Programming' started by GoldenPotato135, Jun 12, 2019.

  1. GoldenPotato135

    GoldenPotato135 Member

    Joined:
    May 2, 2019
    Posts:
    4
    Im trying to make it so when I kill my boss enemy (obj_fem) it allows me to open a door (obj_enddoor), but i cat figure out how to do it. Please help.
     
  2. pixeltroid

    pixeltroid Member

    Joined:
    Jul 23, 2016
    Posts:
    652
    I have a similar system. Once a boss is killed, the door object gets destroyed allowing the player to move ahead.

    Basically I have this in the code that deals with what happens when the boss dies :

    Code:
    with (obj_door)
    {
    instance_destroy();
    }
    
     
  3. pixeltroid

    pixeltroid Member

    Joined:
    Jul 23, 2016
    Posts:
    652
    this is only the basic stuff. I also have a more complex code that indexes every boss and the door that opens when the boss is killed. Let me know if you want it.
     
  4. GoldenPotato135

    GoldenPotato135 Member

    Joined:
    May 2, 2019
    Posts:
    4
    thank you but I probably wont need it
     

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