Viewports work weirdly in this one room

Discussion in 'Programming' started by Century, May 11, 2019.

  1. Century

    Century Member

    Joined:
    Apr 22, 2019
    Posts:
    16
    I am relatively new to GMS2 so I will try to explain this the best I can.
    In one room, the viewport works exactly how I want it. It keeps the character in the centre whilst also keeping the camera moving. In another room, it lets the character get to the very edge of the screen before moving, thus not allowing the player to see where they are going.

    I have tried using the same viewport and a different one.
    The first room is the usual room dimensions except is it longer
    The second room is scaled up around 3 times.

    Thanks
     
  2. woods

    woods Member

    Joined:
    Jun 21, 2016
    Posts:
    223
    i donno about gms2 but in 1.4.9999 i am constantly forgetting to have the view follow the player box checked and view active when room starts...

    sometimes it the most simplest of things that throws us off ;o)
     
  3. rIKmAN

    rIKmAN Member

    Joined:
    Sep 6, 2016
    Posts:
    4,526
    Iterate through all rooms and set them using GML, then you don't have to worry about setting them at all.
    This is best done in an "init" room which does all the setup before moving to your real first room.
     
  4. Century

    Century Member

    Joined:
    Apr 22, 2019
    Posts:
    16
    It is set to follow the player. The view does follow them, they just don't remain in the center and it lets them move to the very end of the view before moving
     
  5. woods

    woods Member

    Joined:
    Jun 21, 2016
    Posts:
    223
    view_hborder[0] =
    view_vborder[0] =

    not set maybe?
     

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