This is simple: I have two instances of the same, draggable object. Once one instance is dropped on another, both should be destroyed.
I came up with this:
But it does nothing.
Once I change the main condition to "TestSprite -> on Collision with TestSprite" it works. If I remove the "on drop" condition leaving only the "TestSprite is overlapping TestSprite" it also works. The problem is I need this to work specifically on drop. Help!
Develop games in your browser. Powerful, performant & highly capable.
'On drop' Adds only that 1 dropped Sprite to the 'PickList'.
All following conditions start picking from that 'PickList'.
Hence, 'Is overlapping' can not find any other Sprite besides the dropped one, only the dropped Sprite is 'Picked'.
Use a Family. The preferred method.
https://www.dropbox.com/s/v0r58igttb5vl ... .capx?dl=0
No money for Familys ? Use a helper object.
https://www.dropbox.com/s/jn3ixy6q9x61f ... .capx?dl=0
Or, use logic. Each sub level has its own 'picklist'.
https://www.dropbox.com/s/7irftk5te4vn5 ... .capx?dl=0
That's great, thank you. For various reasons I now need to have the same objects in two families with duplicate instace variables but it works very well.