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?
Develop games in your browser. Powerful, performant & highly capable.
It works now, I understand how this works. Thanks!
Great :)
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