Project 441: Protect The Castle

8. Enemies take away Castle Health

When the enemy clones are touching the castle the castle health should go down.
Starting point file for this challenge

Your goal

Steps

1. Decrease castle health

When the enemy touches the castle, its health should down.

Once the code has reached the end of the current code block, the clone will be touching the castle, so you can place your next block there.

2. Repeat once every second

Your castle should lose 1 health for every second that the enemy is touching it. Use a "forever" loop and a "wait ___ seconds" block to do this.

3. When does it stop?

With your current code your castle will lose health forever. 

In the next few steps you will have to find a way to get rid of the enemy clone so that your game is playable.