Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
Free education resources to use in the classroom
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
How can I know how many instances of a object I have? I need to create a for each loop to count or C2 has a faster and clean way ?
Thanks in advance
Develop games in your browser. Powerful, performant & highly capable.
One of the Misc event expressions available is Count which counts the number of instances of an object.
<img src="http://dl.dropbox.com/u/34306693/instancecount.png" border="0" />
Wow thanks a lot exactly that I was needing... Sorry about this question but I really not found this...
Btw, I used For..Each loop with a local variable to count.. but its slower than using Count.