1. Hey! Guest! The 35th GMC Jam will take place between November 28th, 12:00 UTC - December 2nd, 12:00 UTC. Why not join in! Click here to find out more!
    Dismiss Notice

Move to different rooms depending on you score

Discussion in 'Programming' started by hinchpop, Nov 7, 2019.

  1. hinchpop

    hinchpop Member

    Joined:
    Oct 24, 2019
    Posts:
    2
    Hi I was just wondering if someone might be able to help. I'm wanting to have my player when they have 0 lives but say the score is over 1000 they go to a game complete room and if it's less than 1000 then they go to a game over room.

    Currently this is my code that I learnt from game maker tutorial.

    if (lives <1)
    {
    room_goto(GO);
    }
    if (global._Score >= 1000)
    {
    room_goto(GC);
    }

    Thank you in Advance
     
  2. marasovec

    marasovec Member

    Joined:
    Sep 15, 2016
    Posts:
    333
    Code:
    if (lives < 1)
        {
        if (global._Score >= 1000) room_goto(game complete room);
        else room_goto(game over room);
        }
    
     
    hinchpop likes this.
  3. hinchpop

    hinchpop Member

    Joined:
    Oct 24, 2019
    Posts:
    2
    Thank you this worked!
     

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