Is there a way to pick out a sprite from an arbitrarily large pool of sprites, solely based on x-value?
use "for each (ordered)"
For each sprite order by sprite.x ascending
and then just put "stop loop" somewhere amongst the resulting actions.
Fantastic. Thanks! Can't believe I haven't thought of that.
Develop games in your browser. Powerful, performant & highly capable.
I had the same thought when someone else posted it.