As of late 2021, we are in the process of updating Stencylpedia and fixing up outdated & broken content. Thanks for your patience!

46,848

Views

Beginner

Level

5

Comments

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.

Dungeon

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!

5 Comments

Unknown User
This was a great chapter. I feel like I understand scenes a lot better now. However, in the Chapter 4 recap at the top of the page, you mention "•Playing and controlling music, sounds, and sound channels". But I believe that due to reorganization, that topic is now covered in Chapter 5. Just wanted to point that out. BTW, thank you for all of your hard work!
1 8 years, 8 months ago
ksaqueen
How do I put an end to the game?
0 9 years, 6 months ago
drtwisted
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?
Thanks.

0 9 years, 7 months ago
ddouen
thanks :3
0 10 years, 4 months ago
lize
??
0 10 years, 4 months ago

Sign In to Comment