I galley for a moment to know how to solve my problem.
I have knights and monsters on the same line.
The knights move to the right and the monsters move to the left.
When they meet, they fight.
What I have today:
There are several monsters that fight several knights at the same time (superimposed sprites).
And the more time goes by, the more monsters and knights stack up in the same place, against each other.
What I would like to have:
When a knight meets a monster, he throws a "duel". The other knights or monsters who encounter this duel pass by and provoke another duel if he meets another entity.
When an entity wins its duel, it advances to meet another enemy and causes a new duel.
I do not know if it's really clear and sorry for my bad english.
Thank you in advance for your help !