Hi,
i have enemy life bars linking with enemies … the code works great … my problem is that when a new enemy is created the enemy bar is not created while the enemies that are in play at the beginning of the scene have the life bar linked correctly.
Can anyone tell me where am I wrong?
surely there is a problem in the first part of the code where if I remove at the beginning of the scene an infinite number of life bars are created.
How can I take into consideration all enemies in play only once?
you hope to make me understand
sorry for the bad english
condition
player is in collision with box
trigger once
action
create enemys at position box
the problem is that the enemy life bars are not recreated … only the enemies brought into play at the beginning of the scene are calculated.
I would like every enemy created to be taken into account and linked to a life bar.
removing trigger once from the first event also takes into account the enemies created later but an infinite number of life bars are created