Hi, Nestorj66.
All enemy units need to have Hitpoints placed above their heads. <img src="{SMILIES_PATH}/icon_mrgreen.gif" alt=":mrgreen:" title="Mr. Green">
We can do this either by creating separate group of events for each enemy unit we create, or use Families.
https://www.scirra.com/manual/142/families
Here's an example capx file demonstrating the use of a Family named Family1.
I've placed comments in event sheet 1. <img src="{SMILIES_PATH}/icon_mrgreen.gif" alt=":mrgreen:" title="Mr. Green">
https://www.dropbox.com/s/cca8b1pqv0asy ... .capx?dl=0
The code looks good, but there's a bug.
There are two enemies, but if you step on the one close to the wall first, then the bug will occur.
I think I know how to fix that bug, but I'll need more time to find the answer. <img src="{SMILIES_PATH}/icon_mrgreen.gif" alt=":mrgreen:" title="Mr. Green">
Maybe another user in the forum can help Nestorj66 with this issue by showing him/her how to pick the correct family member from Family1.
If not, I'll be back with an answer tomorrow. <img src="{SMILIES_PATH}/icon_mrgreen.gif" alt=":mrgreen:" title="Mr. Green">