Picking out an object with the smallest x-value.

Get help using Construct 2

Post » Mon Oct 29, 2012 1:56 pm

Is there a way to pick out a sprite from an arbitrarily large pool of sprites, solely based on x-value?
B
4
Posts: 9
Reputation: 418

Post » Mon Oct 29, 2012 2:19 pm

use "for each (ordered)"

For each sprite order by sprite.x ascending

and then just put "stop loop" somewhere amongst the resulting actions.
B
28
S
8
G
1
Posts: 469
Reputation: 4,683

Post » Mon Oct 29, 2012 3:19 pm

Fantastic. Thanks! Can't believe I haven't thought of that.BentOnHell2012-10-29 15:19:19
B
4
Posts: 9
Reputation: 418

Post » Mon Oct 29, 2012 3:31 pm

I had the same thought when someone else posted it.
B
28
S
8
G
1
Posts: 469
Reputation: 4,683


Return to How do I....?

Who is online

Users browsing this forum: badmoodtaylor and 8 guests