Chapter 10: Complete RPG Mini-Game Tutorial
In this final chapter, we will build a complete, playable Mini-RPG game from start to finish in RagNext Studio.
This hands-on project ties together everything you have learned: creating rooms, connecting exits, placing items and containers, writing variables, building action graph puzzles, creating an interactive combat screen with hotspot buttons, and publishing your standalone game!
::: tip ๐ฌ Watch the Video Demonstration Series Prefer video? Watch our 3-part masterclass showing this exact combat system built live in RagNext Studio:
- Part 1: Interactive Combat Screen & Hotspots
- Part 2: Inventory Integration, Skill Systems & Action Loops
- Part 3: Script Editor Formulas & Dynamic Damage
- ๐บ Complete Tutorial Playlist on YouTube
- โถ๏ธ View Complete In-Depth Video Documentation Page :::
10.1 Tutorial Overview: "The Dungeon of Shadow"
Our game features 3 rooms and 1 interactive combat screen:
flowchart LR
A["Room 1: Dungeon Cell<br/>(Find Brass Key behind loose brick)"] -->|East Exit (Locked)| B["Room 2: Armory<br/>(Find Sword in chest)"]
B -->|North Exit| C["Room 3: Boss Arena<br/>(Triggers Interactive Fight Screen)"]
C --> D["Interactive Combat Screen<br/>(ATTACK, HEAL, FLEE Hotspots)"]
10.2 Step 1: Create a New Project & Variables
- Launch RagNext Studio and click โ New Game.
- Title:
The Dungeon of Shadow, Author:Your Name, Version:1.0.0. - Go to โ๏ธ Variables & Timers and create four variables:
PlayerHP(Integer, Initial Value =100)MonsterHP(Integer, Initial Value =50)Gold(Integer, Initial Value =0)FoundKey(Boolean, Initial Value =False)
10.3 Step 2: Build Room 1 โ Dungeon Cell
- Select the default starting room in ๐ Rooms and name it
Dungeon Cell. - Type description:
"Damp stone walls surround you in the dark cell. Water drips from the ceiling. A heavy iron door leads East."
- Go to ๐ Objects and click โ Add Object:
- Name:
Loose Brick(Uncheck Is Collectible โ Static Scenery). - Place in
Dungeon Cell.
- Name:
- Add Action to
Loose Brick("Inspect Brick"):- Open ๐จ Visual Graph Editor.
- Add Condition:
FoundKey == False- True Branch:
Set Variable: FoundKey = TrueGive Item: Brass KeyPlay Sound: stone_slide.wavPrint Message: "You pull out the loose brick and discover a Brass Key!"
- False Branch:
Print Message: "The brick cavity is empty."
- True Branch:
10.4 Step 3: Build Room 2 โ Armory & Door Lock
- Click โ Add Room and name it
Armory. - Description:
"Weapon racks line the stone walls. An old iron chest rests against the corner. A archway leads North."
- Connect
Dungeon CellEast exit toArmory(Check Two-Way Exit). - Lock the East exit: Check Locked and select locking key item
Brass Key. - Create Object
Iron ChestinArmory(Check Is Container).- Put Object
Broadsword(IsWearable = True, Slot =MainHand) insideIron Chest.
- Put Object
10.5 Step 4: Build Room 3 โ Boss Arena & Interactive Combat Screen
- Click โ Add Room and name it
Boss Arena. ConnectArmoryNorth toBoss Arena. - Open Interactive Screen tab on
Boss Arena:- Check Enable Interactive Mode.
- Set Backdrop to
combat_arena.jpg.
Adding Combat Hotspots
- Click โ Add Hotspot $\rightarrow$ Name:
ATTACK(TextButton, Label =โ๏ธ ATTACK).- Click
๐จ Edit Hotspot Action Steps:Modify Integer: MonsterHP -= 15Play Sound: sword_hit.wavPrint Message: "You attack the Dungeon Guard for 15 damage!"- Condition:
MonsterHP <= 0:- True:
Modify Integer: Gold += 100,Print Message: "Victory! You defeated the guard and claimed 100 Gold!",Close Screen.
- True:
- Click
- Click โ Add Hotspot $\rightarrow$ Name:
HEAL(TextButton, Label =๐งช HEAL).- Action steps:
Modify Integer: PlayerHP += 20,Play Sound: heal.wav,Print Message: "You drink a potion and recover 20 HP!".
- Action steps:
- Click โ Add Hotspot $\rightarrow$ Name:
FLEE(TextButton, Label =๐ FLEE).- Action steps:
Print Message: "You flee back to the Armory!",Close Screen.
- Action steps:
10.6 Step 5: Publish Your Standalone Game!
- All your edits are automatically saved in real-time by Studio!
- Click ๐ Publish in the Top Toolbar.
- Choose your target platform (Windows, macOS, Linux, or WebGL), check Create Compressed .ZIP File, and click Publish Game Now.
๐ Congratulations! You have built and published a complete, interactive RPG game with RagNext!