How to switch from room to room

0 favourites
  • 2 posts
From the Asset Store
Toggles Dials Switches and Alerts ! A foundational sound grouping of Analog type switches and Steampunk effects
  • Hello! I have a question. I want to make a platformer game and a lot is clear for me. But i want to switch from room to room. Exactly like the oldschool game "Maze of Galious" for the MSX computer. Can anybody help me with that? I cannot find a clear tutorial online.. Thanks! Tim

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • A beginner's method would be to create invisible trigger sprites at the exit areas of a room. On the trigger you have an instance variable, where the value is the name of the next layout to go to. On collision with this trigger you go to layout 'trigger.variable'. This involves building each level as a separate layout.

    A more advanced method would be something like reaching an exit in a room, then during that fade you would rebuild the tilemap data to create a different room, usually a json format string which contains the data for the tiles. This builds the new room in the same layout, but you would need to define logic for where the player spawns and probably store room data in an array.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)