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
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
Develop games in your browser. Powerful, performant & highly capable.
Thank you, that was better!