How to create a Rogue-like RPG game with only 1 Layout and Infinite Rooms?

4

Stats

926 visits, 1,110 views

Tools

Translations

This tutorial hasn't been translated.

License

This tutorial is licensed under CC BY-NC 4.0. Please refer to the license text if you wish to reuse, share or remix the content contained within this tutorial.

Published on 5 Oct, 2023. Last updated 6 Oct, 2023

First, let's create a new project and entitle it to whatever you like. I am calling my project “2D Rooms” (aka “Tutti Rooms” ;).

Step #1: On our Project`s Panel –where it says “Layouts” Folder–, rename “Layout 1” to anything you like. I named mine “MiniQuestIGM” since I plan to use this project as an “In-Game Module” for my Rogue-like RPG Quests.

Step #2: Decorate this first layout to match your game`s theme. Since mine is a Fantasy Rogue-like RPG, I’ve selected a medieval theme with: a stone floor, and 4 doors in each of the compass directions. I’ve added some scary artwork to frame the game, and several text fields – such as game title, current room description, tooltips, and, of course, my copyright.

I’ve added some fancy behaviors to “fade in and out” when the gamer’s avatar collides with a doorway. I adjust their avatar’s position to the opposite side of the room. This makes the gamer believe their avatar has stepped through a door from the last room into a new room! It’s all simple magical “sleight of hand” stuff.

The rooms are really a 2-dimensional array. This array holds the magic. I adjust the “X, Y” in the array to account for the gamer’s current “room position”. It can be as large as you need – 1,000 x 1,000(?) – all using this single layout!

Step #3: Now add a gamer’s avatar to this layout; I’ve called my avatar “rp_MenuIcon”. Since my theme is “medieval”, I chose a heraldic shield.

Step #4: Let’s go to the layout’s “Event sheet 1” and insert an “Action” for the gamer’s avatar: On collision with whatever you have. I don’t know if the gamer is playing on a mobile device or their desktop computer; so, I added more actions to cover those circumstances. Now, it’s time to tell the Construct what to do.

Try this tutorial in the arcade

OR

Get the source code from the asset store ... and learn how to exchange theme for space-age or cavern adventures.

Disabled Comments have been disabled by the owner.