# Editor tools

> Aego 0.12.5 · development; docs build `4a32b816933e02930662f6a443cb25abe6050d090c55e237cbff5c44ae9b25f8`. [Build manifest](/docs-build.json).

The editor builds ready gameplay nodes, draws hit areas and shows the state of controllers, health and state machines during Play.

## Ready nodes

**Create → Gameplay** builds ready nodes:

- Platformer Character: kinematic body, collider, Motion 2D, Health, Hurtbox 2D and Respawn;
- Top-down Character;
- Enemy: dynamic body, Health on team 1 and a periodic Hitbox 2D with knockback;
- Moving Platform, Checkpoint, Kill Zone and Pickup.

## Required components

**Add Component** adds what a component requires. Motion 2D on an empty node brings a Rigid Body 2D, and one Undo removes both. The list shows what comes along. `aego scene add-comp`, Paste and presets add it the same way. Adding Motion 2D to a node with a body makes the body kinematic.

![Add Component on an empty node: the entry lists the Virtual Camera 2D that comes with Camera Follow 2D](shots/add-required.png)

## Areas

- Select a node with a hitbox, hurtbox, kill zone, checkpoint or pickup to drag the corners and edges of its area. Snapping applies, and every drag is one Undo step. A hitbox also shows its knockback as an arrow.
- **Gameplay → Gameplay Areas** shows every area dimmed in the Scene View. During Play the Game View draws active hurtboxes and hitboxes, the zones and a health bar over every node with Health.

## Inspector during Play

The runtime state of the controller shows its velocity, whether it is grounded, wall and ceiling contact, the floor and the body under it. Motion 2D adds a contact summary, Health a bar with the hit points and State Machine the current state and how long it has lasted. Lifetime shows the seconds left.

## Profiling and problems

- **Profiler → Gameplay** shows controllers and casts per fixed step, and the hits, deaths, respawns and pickups so far.
- The Event Monitor lists state changes, damage (with the amount up to 9), deaths, respawns and pickups as `gameplay` rows.
- Problems lists a Motion 2D whose body is not kinematic ([GMP001](/diagnostics.html#GMP001.md), blocks Play), a platformer with Gravity Scale 0 and no Jump Speed ([GMP002](/diagnostics.html#GMP002.md)), a state machine with empty, duplicate or unknown states ([GMP005](/diagnostics.html#GMP005.md)) and a Hurtbox 2D with no Health on its node or above it ([GMP006](/diagnostics.html#GMP006.md); hits on it are ignored).
