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
PNGfiles, an animatedGIF, or an imported ROM character. - A test level where the enemy can spawn quickly.
Steps¶
- Open the mod in the in-game editor menu.
- Launch the Character Editor.
- Choose Mod mode and the Enemies filter.
- Choose Create New, drop sprites, or import from a ROM.
- Name the enemy.
- Set the entity type to an enemy type in the Character Editor if it is not already set.
- Build the enemy's idle, movement, attack, hit, knockdown, and death animations.
- Add body boxes and hitboxes.
- Configure behavior through reference logic, animation logic, enemy modes, and scripts as needed.
- Save the enemy.
- Open the Level Editor.
- 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.
Links¶
- Create Levels
- The Character Editor Workspace - panels, preview controls, and shortcuts
- The Inspector - every setting and what it means
- Enemy Logic
- Character Editor Reference
- Level Editor Reference
- Behaviour Modes