Create an Enemy

Enemies use the same Character Editor foundation as playable characters, but their logic and level placement are different.

Goal

Create an enemy entity and place it in a level.

Prerequisites

  • A source mod under Editor.
  • Enemy sprites as PNG files, an animated GIF, or an imported ROM character.
  • A test level where the enemy can spawn quickly.

Steps

  1. Open the mod in the in-game editor menu.
  2. Launch the Character Editor.
  3. Choose Mod mode and the Enemies filter.
  4. Choose Create New, drop sprites, or import from a ROM.
  5. Name the enemy.
  6. Set the entity type to an enemy type in the Character Editor if it is not already set.
  7. Build the enemy's idle, movement, attack, hit, knockdown, and death animations.
  8. Add body boxes and hitboxes.
  9. Configure behavior through reference logic, animation logic, enemy modes, and scripts as needed.
  10. Save the enemy.
  11. Open the Level Editor.
  12. Place the enemy in a test wave or spawn group.

Testing

  • Confirm the enemy spawns in the level.
  • Confirm it can move, attack, take damage, be knocked down, and die.
  • Check difficulty settings and multi-player scaling.
  • Test multiple copies on screen.
  • Test palette variants if the enemy uses alternate palettes.