How-to2 min read

How to Add Enemies to Your Platformer (and Mix Enemy Types)

By the devbox.studio team at Forging Destiny Studios, LLC

Quick answer

In devbox.studio you add enemies by painting enemy tiles in the World tab. Enemies patrol back and forth, turn at walls and ledges, and are defeated by jumping on top of them. You can add up to six enemy types per game in the Sprite tab, and each type gets its own tile, so one level can mix walkers, hoppers and big tough enemies.

Enemies turn a walk into a challenge. One well-placed enemy can teach timing, block a path, or create a moment of panic. Here is how to add them, and how to place them so they are fun rather than frustrating.

Step 1: Choose your enemy types

Open the Sprite tab and scroll to the enemy section. Every game starts with one enemy type. You can add up to six, such as:

  • Gloop, a classic slime that slides back and forth
  • Clank, a sturdy beetle
  • Bristle, a brown boar
  • Croak, a frog that hops as it moves, which makes timing trickier

Some special enemies, like Boo the ghost and Golden Gloop, unlock with secret codes. You can also change any enemy's size to make a big, scary version.

Step 2: Paint enemy tiles

In the World tab, each enemy type has its own tile in the palette. Paint it where you want that enemy to start. Enemies walk in one direction and turn around when they hit a wall or reach the edge of a platform, so they stay on the platform where you put them.

Step 3: Test the stomp

Players defeat an enemy by landing on top of it. Touching it from the side costs a life. Press Test play and try stomping each enemy. If a stomp feels hard to land, give the player more room above the enemy.

Where to place enemies

  • First enemy on flat ground. Let players learn to stomp with nothing else going on.
  • On short platforms. An enemy pacing a small platform forces the player to time the landing.
  • Guarding coins. A coin behind an enemy is a little risk-and-reward puzzle.
  • Before a gap, not after. An enemy right where the player lands from a jump feels unfair, because they could not see it coming.

Mixing enemy types

Mixing types is where levels get interesting. Hopping Croaks are harder to stomp than sliding Gloops, so save them for later in the level. A big 2x enemy reads as a "mini boss." Use one new enemy type per level, introduced alone first, just like any other new idea.

How many enemies is too many?

If players spend the whole level stomping, enemies stop being interesting. A good rule for a first level is one enemy every 15 to 20 tiles, with gaps between groups. The Enemy Patrol template is a good example of a crowded level that still feels fair because enemies are spread out on different heights.

For more on pacing a level, see 12 level design tips.

Frequently asked questions

How do you defeat enemies in devbox.studio?

Jump on top of them. Touching an enemy from the side costs the player a life.

How many enemy types can one game have?

Up to six enemy types per game, and each type gets its own tile in the World palette.

Make your own game today. It's free.

devbox.studio runs in your browser: pick a template, paint your hero, and play your level in minutes.

How-to2 min read

How to Make a Multi-Level Game with a World Map

Turn one platformer level into a full game: add levels, place them on a world map, pick paths, and choose unlock rules like clearing a level or collecting coins.