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
101
S
22
G
12
Posts: 3,265
Reputation: 17,056

Post » Tue Jul 07, 2009 8:12 am

:)
Scirra Founder
B
399
S
236
G
89
Posts: 24,530
Reputation: 195,402

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
151
S
75
G
20
Posts: 1,793
Reputation: 22,749


Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 5 guests