I have a deck of cards, some of which overlap each other.
I want that when the mouse hovers over the cards, only the top card (the one with the highest Z value) is affected.
I know there used to be an extension for this, but I can’t find it anywhere.##
Explain what should happen when you run the game.
The extension seems to have been renamed to “Unpick all instances”. I’m assuming they renamed it because the updated for each instance event can now do everything except for the Unpick All function. It still includes the object picking functions. I think it was named “Object Picking Tools”
I wanted to play with the newly ungraded for each instance. As ZeroX4 said, use Zorder, ascending or descending for top or bottom. You can also change the limit to 1 so only the 1st object in the list is used which would either be the top or bottom object depending on the sort direction.
I’m loving the upgraded for each instance. I experemented with dragging the topmost Card object. IDK your goal. I just wanted to test dragging.
I like to use ‘pick nearest’ to choose between multiple objects. I also used the upgraded event to find the highest Z-order value so that the object clicked could be set to that value plus 1.
I was looking at this and straight away thinking how to do it without the updated ‘for each’ . It’s great that we’re getting these new updates …many thanks to the team! ‘Else’ was only added a couple of months ago and the new set of ‘for each’ options is only a couple of weeks old! …fantastic!
They also added the ability to add loop counters to events that loop which makes it easier and cleaner looking. The repeat is now closer to a For… Next loop.
Wow, that explains why chatgpt was so insistent that the extension still exists…
ZeroX4’s solution worked, but the refinement regarding limit also helped a lot
Thanks a lot, appreciate the help!