So I've been making a game for my course as the last project, and I've stumbled upon a difficulty to make it so that a press / tap on the very first object that spawns after it fades, and if two of them spawn, the press / tap would only relate to the first one, and if the first one
is gone then the second, in that order.
Currently what happens is that it kills all of the objects (relevant to that type) present on that layer. I've tried
using pick by UID, and trying to assign instance variables to the objects, or using the dictionary + pick by UID. The best result I've got
was by storing their UID in the dictionary as an integer + a global variable and then picking by their UID, which resulted in just the last one being destroyed but existing objects on the layer to be ignored.
Here is a capx example (cleaned most of the things):
Any help will be greatly appreciated!