Damage from a predator

This code snippet is used to add a predator that damages the bug in the game

You will need a health variable to use this code

It works by checking if the predator is touching the hedgehog, and if it is they say they might hurt you then they reduce your health by 5.

The code can be found here:

https://scratch.mit.edu/projects/392910567/

.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top