In my game I have proximity mines that work 'should' work by:
Distance(mine and enemy) less than or equal to 150 pixels.
Mine pick nearest enemy.
Mine is not playing animation "active".
Then:
Mine set animation active (from beginning).
However this doesn't work when multiple mines are on-screen.
The gun fires a volley of four mines, each with bullet behaviors. Currently the mines have an overlapping sprite pin to them with a larger collision polygon, when they hit the enemy it activates the mine. However because of reasons this method doesnt work well and is limited to one volley at a time. If anyone knows another way that is simple and works independent of the number of mines please let me know.