I want to create a health bar for each spawned enemy. However, only the first spawned enemy gets a health bar.
Removed Trigger once condition, and it works.
Be careful of the number of health bars you create.
Yes, thank you for the warning. Trigger once is very much needed in order not to create 60 health bars at once.
But if I put Trigger once, it only creates a health bar for the first spawned enemy.
In the same block, add a condition ‘boolean var HB of enemies is false’ and add an action ‘set boolean var HB of enemies to true’.
(And remove the Trigger once)
Thank you very much, it works.