1. Hey! Guest! The 32nd GMC Jam will take place between Feb 22nd, 12:00 UTC (Friday noon) and Feb 25th, 12:00 UTC (Monday noon). Why not join in! Click here to find out more!
    Dismiss Notice

Question - Code Overlapping Rooms

Discussion in 'GameMaker Studio 2 Community Tech Support' started by Coffeepugs, Sep 14, 2018.

  1. Coffeepugs

    Coffeepugs Member

    Joined:
    Sep 14, 2018
    Posts:
    3
    So im pretty new to this, but last time i did the exact same thing and this didnt happen. Basically i have 2 rooms. Both have a warp but only one is currently woriking, which goes from room0 to room1. Instead of swapping rooms, room1 appears in the bottom left corner of the screen and room0 stays visible behind it. How can i fix this? I have no clue
     
  2. csanyk

    csanyk Member

    Joined:
    Jun 20, 2016
    Posts:
    818
    Without seeing the code, it's really hard to understand what you're saying. It doesn't sound like you're using rooms the way GMS intends, though. The engine is limited to running one and only one room at a time.
     
  3. chirpy

    chirpy Member

    Joined:
    Oct 6, 2016
    Posts:
    92
    It sounds like OP has some persistent objects in the rooms. If it's somewhat intended, you can set the visible flag to false before swapping rooms (before room_goto) to hide the room objects. If it's not intended, then you might need to uncheck the persistent flag on the objects.
     

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