For my game, I need to pick all the instances of a sprite but not the active one.
The active one is the one that actions are applied to at a given click.
How can I do that ?
You can save the active instance UID in a local variable, then do this:
System Pick All Sprite System Pick Sprite by evaluate Sprite.UID<>savedUID
Or, if you need to still have the original instance picked, you can add this sprite to a family. This way you can pick one instance of the sprite and the remaining instances of the family, and work with them all in the same event.
Develop games in your browser. Powerful, performant & highly capable.
Instance variable "last touched"
On any touch start, pick all set to 0
pick nearest to touch.x,touch.y set 1
then pick all = 0 do whatever.
Thank you very much for your answers.
dop2000 I've got a topic related to this one here and I'm sure you could be of help to sort the question out : https://www.construct.net/en/forum/construct-3/how-do-i-8/prevent-multiple-enemies-166731
Thank you !