Chapter 4 Challenge

by Ceric (Updated on 2012-05-13)

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

That’s even more ground covered than in Chapter 3!

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:

  • A hero who can walk around and shoot energy blasts (use the Z key)

  • Sounds, including sound effects and background music

  • A basic enemy Actor who can walk around randomly

  • A dungeon tileset


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


Download the Project

- Unzip and stick the project into your Games directory as "Chapter 4 Challenge"

- Don't know where your Games directory is? Click the "View Games Directory" button at the bottom of the Welcome Center (the first screen you see after opening Stencyl)


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.


[Looking for the full solution?]

Disclaimer: All articles are geared towards Stencyl 3.0 and above. 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 5 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 6 months, 1 week ago
thanks :3
0 1 year, 2 months ago
0 1 year, 3 months ago

Sign In to Comment