EXPRESSION: get number of picked instances

New releases and general discussions.

Post » Tue Jul 07, 2009 3:58 am

can be used at any time, to return the number of picked instances of a sprite.

eg. A overlaps B >> if none overlap, then it will return 0, since none are picked.
You can use it in nested structures of picking subevents to check for the count of picked objects and it would return different numbers at different points of the tree.

i know you can do this with a for each and a variable, but having an expression could come in handy.
:mrgreen:
B
48
S
10
G
9
Posts: 1,224
Reputation: 8,449

Post » Tue Jul 07, 2009 7:05 am

Spriter Dev
B
103
S
22
G
12
Posts: 3,282
Reputation: 17,145

Post » Tue Jul 07, 2009 8:12 am

:)
Scirra Founder
B
408
S
242
G
92
Posts: 24,923
Reputation: 198,694

Post » Tue Jul 07, 2009 5:06 pm

wow, never knew that was there. :mrgreen:
B
48
S
10
G
9
Posts: 1,224
Reputation: 8,449

Post » Wed Jul 08, 2009 2:04 am

lol Rich just pointed that out to me as well
B
162
S
80
G
22
Posts: 1,808
Reputation: 24,585


Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 0 guests