How can i add multiple ennemies who acts the same?

Hey, so im making a top-down game, where the goal of the player is to survive ennemies waves.

Everything was fine until i decided to add a 2nd ennemies, i don’t know to make it work …

I’ve seen a youtube video from Gdevelop where the Youtuber create a group with all the Ennemies that he call “ennemies” and then replace the name of the first ennemies by this group name in the events research. And sudenly all the ennemies acts the same way, ( i have already added the Health Behavior to the 2nd Enemmie )

My 2nd ennemie move toward the player like the first one, but he do not take any damages ( the hurt animation still work ) but he can’t die, and he also have no health bar, was wondering what’s wrong ?

Here is a screen of my Gdevelop work :

Thanks in advance

This section here. It looks like it’s adding 2 objects. One with the group name and the other as enemy2.

Is it adding 2 objects? One might be hiding behind the other. It might be trying to add 1 health bar when there are 2 objects. IDK if both add object actions are needed.

To use a group name to add objects, you need to use the add objects by name.

Are all the enemy objects in the group?

But are you trying to add 2 objects or one?

So I am working on a game that does similar things this is how my health bars are assigned to my units and how I assign my units to the teams. In this instance there are two teams.

This is how I do the damage for all of my units.

So you can see red team with lots of units and blue team with one here. Their health bars are their team colors and the size of the bar is relative to their remaining health.

Hopefully that helps