Hello everyone.
I think I need a help to build a system that would work how this spec above:
1. The are severals enemies in the game (hotspot with figures of a monster on a frame).
2. These enemies have a counter whit a value that represents your life (as well the player).
3. The player use a item (sword) on the monster and this trigger the combat system.
4. Then, randomly is defined if the player or the monster was hit - who was hit, takes the damage and lose X points of life.
If the life of the monster reaches zero, he was defeated, as well, if is the player, game over.
Thanks