Probably a noob question, but I'll ask anyway.
How do i check a variable between multiple objects, looking for the highest value?
3 Boxes (sprite)
"Capacity" (Instance Variable)
I want to compare "Capacity" for each box, and get the Highest value.
I was using "For Each" but it just keeps giving me the value of the First Box, ignoring subsequent boxes.
Thanks in advance!
Try putting the sprites into a family then use the "Pick highest/lowest" condition. <img src="smileys/smiley1.gif" border="0" align="middle" />
Develop games in your browser. Powerful, performant & highly capable.
That's a good idea, except it's just one object that I cloned to make 3. Less object, less resources used (my theory). But i'll try it out either way.
It worked just like you said! Thanks for your help.
dooley No problem, glad you got it sorted <img src="smileys/smiley1.gif" border="0" align="middle" />
Btw, if it's only one object then you can just use the "Pick highest/lowest" condition for that object.