1. Hello Guest! It's with a heavy heart that we must announce the removal of the Legacy GMC Archive. If you wish to save anything from it, now's the time! Please see this topic for more information.
    Dismiss Notice

How to change Views in code?

Discussion in 'Programming' started by TriiiKill, Aug 12, 2016.

Tags:
  1. TriiiKill

    TriiiKill Guest

    Just like the title asks. It's the biggest part of what I need to know, but...

    What is your preferred method of changing views when the player goes into another room?
    (Assuming the views are set up ahead of time and just need to be switched)
     
  2. Aura

    Aura Guest

    Ztar likes this.
  3. TriiiKill

    TriiiKill Guest

    What I was asking was how to switch views in code. From your link I was able to make this:

    Step Event:
    if obj_Player.x >= 1280
    {
    view_visible[0] = false
    view_visible[1] = true
    }
    else
    {
    view_visible[0] = true
    view_visible[1] = false
    }

    Basically, when the Player goes into a special side room, the view changes to show the hidden side room. When he leaves, the view changes back to the main room.

    Thanks for the link :)
     
    Ztar likes this.
  4. Hey, I know this is an old post, but I want to do this same thing but with a collision. I'm only used to doing collisions with blocks of code so I don't really know how to do it. Does anybody know how to help?
     
  5. TriiiKill

    TriiiKill Guest

    You'd have to be specific on exactly what you are trying to do.
     

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