Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
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
Develop games in your browser. Powerful, performant & highly capable.
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.
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