Family.Count expression

Bugs will be moved here once resolved.

Post » Sat Feb 11, 2012 11:22 am

Hi guys,

I would assume that the expression "Family.Count" should return the total count of every instance of every sprite within the family. It seems to return only the count of the first sprite within the family.

Here is a Capx example:

http://dl.dropbox.com/u/41218343/Family.Count%20Bug.capx

Keep up the great work. I love the program,


Many Thanks

Nathan
B
29
S
8
G
4
Posts: 61
Reputation: 6,205

Post » Sat Feb 11, 2012 11:27 am

Family.Count works more like a standard ie Sprite.Count, return how many current Family objects are on the layout.
ImageImageImageImage
B
140
S
58
G
36
Posts: 2,547
Reputation: 31,170

Post » Sun Feb 12, 2012 11:04 am

Im my example there are 9 X Sprite1 and 13 X sprite2 within family1.
Family1.Count returns 9. I would expect 22. It appears to only be counting the first sprite with in the family.
B
29
S
8
G
4
Posts: 61
Reputation: 6,205

Post » Sun Feb 12, 2012 9:25 pm

Oops, you're right - fixed for next build.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,580


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 2 guests