Hi, My first Construct 2 question (regarding code)
I have a set up a system which destroys an instance by clicking on it. Only problem is when the instances are overlapping, clicking on them destroys all of them instead of one of the instances.
How could I go about making it so that by clicking on overlapping instances only 1 instance is destroyed? Currently they are on the same layer, I was thinking on adding them to different layers upon creation, then somehow deleting one by layer only.
Only what if I end up with 20 instances? I recon that the layer placement upon creation could be hard on memory.
The other idea is that each needs to be somehow labeled, then upon clicking the overlapping instances need to be checked and only 1 needs to be destroyed.
But then again I might be doing this backwards
I would appreciate if someone could shed some light on this matter.
Ps. At the moment it is only 1 type of instance that is being created.