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
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
I want to constantly set a value to the number of objects that have an opacity of 100
For each object where opacity=100, set variable to object.pickedcount
This just returns value 1. "where opacity = 100" means a condition?
It works now, I understand how this works. Thanks!
Actually, there's a new problem. For some reason, when there is no objects with an opacity of 100, it just returns 1. It does the same when there is one object with 100 opacity.
Develop games in your browser. Powerful, performant & highly capable.
Never mind, I just realized the event can't return a value if there is no objects with opacity 100. I'll add an else statement for 0.
Sorry object.count if using a continuous for each loop. If you use a system pick all objects then start to limit them with condition opacity=100 you can use object.pickedcount