I am trying to make a demo, which consists of pressing a button. Every time u press the button, the enemy on screen, (1 at a time) would take damage until it reaches 0. Once the enemy dies, I would like to spawn an enemy with the same 'behavior', (takes damage when I press the button), but with different values for its health, (instead of 100 max hp, 200 max hp). How would I do this?
Thanks in advance ;)