Chapter 4 Challenge

by Jon (Updated on 2015-10-26)

Chapter 4 Recap

Chapter 4 focused on Scenes. You learned about...

  • The basics of Scenes
  • How the camera works and how to control it
  • Importing and using Tilesets
  • What Regions are and how to use them
  • Drawing text and HUDs
  • Changing Scenes
  • Playing and controlling music, sounds, and sound channels
  • Adding and using Backgrounds
  • How to customize individual Actors

With all that under your belt, it’s time to take on the Challenge for Chapter 4.

Challenge: Create a “Mini-Dungeon” Action Adventure Game

Dungeons are the heart of an adventure game such as Zelda. Dungeons blend both action and puzzle solving.


Your Task

Design your own mini-dungeon game that includes the following elements:

  • Has an intro room with nothing except an entrance to the 1st main room
  • At least 3 main rooms
  • A final room that simply says "You Win!"
  • Every main room has a locked door that prevents you from proceeding until you've satisfied the game's conditions.
  • 1 room should involve stepping on a switch to open up the door
  • 1 room should involve killing all enemies to open up the door
  • 1 room should involve activating two switches. Both must be active to open the door.
  • All of the main rooms should contain enemies.
  • Background music should constantly play without restarting between rooms.

Here's a Head Start

To make this easy on you, we're providing a scaffold game to work from. That way you can focus on building your dungeon. This scaffold game contains the following:

Feature Screenshot
A hero who can walk around and shoot energy blasts (use the Z key) stencyl-hero-actor
Sounds, including sound effects and background music stencyl-sound-icon
A basic enemy Actor who can walk around randomly stencyl-slime-actor
A dungeon tileset stencyl-dungeon-tile

Have fun with this challenge and make it your own. Good luck!

Start with this Project

To help you get started, we’ve created scaffold project, so you don't have to worry about importing any resources at the outset.

Download the Project

Instructions: Import this using File > Import. Requires Stencyl 3.4.0 or later.

Stuck? Want some hints?

  • Hint #1 - Use a Behavior to count the number of enemies in the Scene where the player must kill all of them to progress.

  • Hint #2 - Remember you can use Behaviors to destroy the door actor to open the path forward.

The Solution

View the Solution + Explanation

Print Article Edit Article How to Edit an Article
Disclaimer: Use comments to provide feedback and point out issues with the article (typo, wrong info, etc.). If you're seeking help for your game, please ask a question on the forums. Thanks!


How do I put an end to the game?
0 8 months, 2 weeks ago
I have such a bug here.
I have created a game from the given kit.
Then I put some ( something about 6) enemy actors around on the map.
When I try to shoot the enemies some of them die and some don't. It happens just randomly.
Also can be that this second enemy gets no damage, but the next it does.
I haven't much of coding experience with stencyl, so the only thing I've figured out is that the collision detection in Simple Health Behaviour just sometimes don't work.
Can anyone tell me what could be possibly wrong with it?

0 9 months, 1 week ago
thanks :3
0 1 year, 5 months ago
0 1 year, 6 months ago

Sign In to Comment