Make a variable for the player's health.
Then do something like this:
When Green Flag clicked
forever
if <touching [zombie]>
change health by -1
wait until <not <touching [zombie] > >
That should make it so that if it's touching the zombie, the health will go down by one, and it will wait until it's not touching the zombie (because it'll likely go away). If you have multiple zombies, you'll have to implement those in the "if" statement.
Offline
Or, put the if statements on the zombies. Make it , instead of the if touching zombie, the if touching player.
Offline