Good Afternoon everybody,
Due to an issue I am having with the physics engine that I don’t think I’ll be able to solve I need to be able to count the number of pieces added to a displayGroup. Normally I would use numChildren to keep track of the number, however I don’t think this is possible. I was wondering if there was a way to double check after initializing numChildren how many items are a part of a displayGroup.
I was thinking something along these lines here but this solution doesn’t actually return all of items currently onscreen. I tried the below solution and it only returns about 7 when I know I for sure have around 120 items onscreen.
http://forums.coronalabs.com/topic/33498-count-number-of-objects-on-the-screen/