Before you begin
Enable enemy behavior and add a player Health number property using the Health preset.
Build it step by step
Open Rules → Combat & interactions → Health. Select the player and create or reuse Health with a starting value such as 6.
Select the enemy and open Configure enemy → Attack and health. Set Damage per hit to 1 and choose an Attack range suited to its artwork.
Set Windup before hit to 0.3 seconds, Cooldown after hit to 1 second and Player protection after hit to 1 second for an initial test.
Add an IF Object property rule for player Health at most 0, followed by GAME → Game over. Avoid duplicate loss rules.
Press Play. Enter attack range, retreat during windup, then allow one hit. Watch the health change and the pause before another attack.
Practical example
A guard lifts its weapon before striking. A windup animation helps the player understand when to dodge.
Test your work
The enemy can damage the player, but health does not vanish in a single instant of contact.
If it does not work
Enemy attacks need the target’s Health or HP number property. Also inspect older contact rules that may separately subtract health or restart the game.
Student challenge
Balance a slow heavy enemy and a faster weak enemy without making either unavoidable.
Show the result to a partner. Explain what you changed and how you tested it.
