Unable to create containers for a family in Construct 2
How can I create a health bar for different enemies using the container?
If possible, could you make an example capx?
Remembering that enemies move, so the bar needs to follow the enemies
Develop games in your browser. Powerful, performant & highly capable.
Containers don't work with families. You have two options:
1. Create a separate health bar object for each enemy type, add it to a container.
2. A better solution is to attach a healthbar to each enemy using the hierarchy feature. You can do this in runtime (in 'Enemy On Created' trigger), or manually in the layout editor.