I have multiple instances of an enemy and multiple instances of a sprite called Enemybox. Enemy and EnemyBox both have a pv called '#' which i use to set their positions.
+EnemyBox: pick by EnemyBox('#')=Enemy('#')
-EnemyBox: set position to enemy
And then when the player goes into an Enemybox i want the Enemy (with the same '#' as the Enemybox) to set a pv it has called 'target' to 1, so i use
+Enemy: pick by Enemy('#')=EnemyBox('#')
+EnemyBox: overlaps player
-Enemy: set 'target' to 1
But when i do this it makes only 1 random instance of Enemy anywhere on the layout target the player. Can someone please help me?