Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Game development stories & opinions
I wonder how to pick the nearest one of some Object Instances.
The aim is to pick the closest Object to a target, but the choice should not be done of all instances, rather only between Objects with specific UID's
Someone has an idea?
Develop games in your browser. Powerful, performant & highly capable.
you could try 'for each - ordered' by distance() ascending, with your other conditions to choose the specific instances. you'd break the loop the first time it runs to pick only the nearest instance.
This should do the job, many thanks :)