Quantcast
Channel: Cocos Forums - Latest topics
Viewing all articles
Browse latest Browse all 17071

Keep track of sprites in a vector

$
0
0

@StrawberryMoney wrote:

This might be a more general C++ question, but is there a way I can apply an event listener to a vector of objects? I don't need to listen for input, just for the size of the vector. In my game, I have populations of various animals, and I want a real-time count of them. It's a little tricky because the number display is on the parent layer, and the vector is on a child layer.

Thanks!

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 17071

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>