blackhornet, Thanks for your reply. Your solution works for this specific case, but you are kinda "misusing" the animation system to get your result. What if you want to have the buttons and/or shadows animated?
dop2000 Thanks for the really detailed reply! The pin behaviour solution looks like the logically cleanest solution for now, but what if I don't want to have the objects pinned physically together? The same goes for the "pick nearest" solution. May work for some cases, yes. But I just need a logical reference, not based on distance or whatever...
I have the family "Balls"
I have the family "Ball_Icons", which show every different kind of ball inside the GUI.
If you click one "Ball" instance, the respective "Ball_Icon" should disappear.
E.g. I click the Basketball, the basketball icon disappears.
Sidenote: Every Ball is animated, Every Ball_Icon is animated, Icon and Ball should not physically pinned together, Positions and distances are random
This sounds like a very specific thing, but the core problem is: Logically referencing two objects without big overhead. Of course there are plenty of hacks/ways to do it, but there most be a clean solution, since its one of the most crucial fundamentals of a gameengine. Maybe I don't get it right since I am a Construct 2 Newb