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
26
S
3
G
6
Posts: 1,199
Reputation: 5,649

Post » Tue Jul 07, 2009 7:05 am

Spriter Dev
B
95
S
21
G
12
Posts: 3,252
Reputation: 16,780

Post » Tue Jul 07, 2009 8:12 am

:)
Scirra Founder
B
373
S
218
G
84
Posts: 23,468
Reputation: 186,208

Post » Tue Jul 07, 2009 5:06 pm

wow, never knew that was there. :mrgreen:
B
26
S
3
G
6
Posts: 1,199
Reputation: 5,649

Post » Wed Jul 08, 2009 2:04 am

lol Rich just pointed that out to me as well
B
139
S
67
G
17
Posts: 1,767
Reputation: 20,070


Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 1 guest