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
25
S
3
G
6
Posts: 1,197
Reputation: 5,620

Post » Tue Jul 07, 2009 7:05 am

Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Tue Jul 07, 2009 8:12 am

:)
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,574

Post » Tue Jul 07, 2009 5:06 pm

wow, never knew that was there. :mrgreen:
B
25
S
3
G
6
Posts: 1,197
Reputation: 5,620

Post » Wed Jul 08, 2009 2:04 am

lol Rich just pointed that out to me as well
B
134
S
65
G
16
Posts: 1,766
Reputation: 19,190


Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 0 guests