What's the elegant solution to overlapping with many copied objects, let's say, many cloned enemies, and then selecting only the instance with the highest Y value?
Develop games in your browser. Powerful, performant & highly capable.
I use "Pick nearest to (0, 9999999)"
I wish there was "Pick by highest/lowest" condition:
github.com/Scirra/Construct-feature-requests/issues/55
(please give the post on Github a thumbs up if you agree)
You could set an instance variable to self.y and use “pick highest variable”.
Or You could add a “for each ordered by sprite.y descending” with a stop loop action.
Thanks! both solutions are great.
Thanks R0J0hound! I also used this one line of code & it worked great! I was overcomplicating my code to find a sprite interacting with it's clone & almost gave up!