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

GMS 2 Viewport not changing

Discussion in 'Programming' started by Vinicius Alvarenga, Jul 10, 2019.

Tags:
  1. Vinicius Alvarenga

    Vinicius Alvarenga Member

    Joined:
    Aug 2, 2018
    Posts:
    19
    Soooooo, I'm making a menu to my game and when I press the "New Game" option it goes to another room using "room_goto();", but, this room that i'm going to has a different viewport from the menu but it's not working. The viewport doesn't change, it keeps the viewport from the menu.
    Can somebody help me?
    Thx
     
  2. Phil Strahl

    Phil Strahl Member

    Joined:
    Jul 3, 2016
    Posts:
    387
    Can you confirm that the viewport in the target room is set to active?
     
  3. Vinicius Alvarenga

    Vinicius Alvarenga Member

    Joined:
    Aug 2, 2018
    Posts:
    19
    Yup
     
  4. Phil Strahl

    Phil Strahl Member

    Joined:
    Jul 3, 2016
    Posts:
    387
    Okay. Have you tried doing this in the target room?
    Code:
    if (!view_enabled)
        {
        view_visible[0] = true;
        view_enabled = true;
        }
    
     
  5. samspade

    samspade Member

    Joined:
    Feb 26, 2017
    Posts:
    2,060
    Why is there a different viewport if there is a different room?
     

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