Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
Manual:
Instance variables
Pick highest/lowest
Pick the single instance with the highest or the lowest instance variable value of all the instances. Note this still only picks a single instance even if multiple instances have the same highest or lowest value; in this case an arbitrary instance is selected.
So how to do it - among instances with highest Variable1 pick the one with highest Variable2 ?
Develop games in your browser. Powerful, performant & highly capable.
good question <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">
capx:
http://s000.tinyupload.com/index.php?fi ... 1640434242
Thats fantastic trick! asking to pickup any instance with highest number, remember its value and series of sortings - 1)comparing with the value 2)pickup highest (at last !)
thanks korbaach, it was great!