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
Our educational partners
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 do you count instances with a certain property or variable value?
For example on this screen there are 10 blocks with the setting collision enabled. Or there are 10 blocks with the variable value set to True. How do I let Construct count that and return me the value of 10?
create a global variable "Count"
on trigger (left button clicked or something)
for each object
object variable value is true
Develop games in your browser. Powerful, performant & highly capable.
Took me a few minutes to figure out how you meant with the event coding, but then I understood what you meant. I have now applied it, with some tweaks from my original goal, to make it simpler.
object variable = xyz
set var_number = object.pickedcount
Thank you, that was better!