Forum Discussion
Seeking feedback: optimizing triggers in multiple selection
Hi Maggie,
I love little interactions like this. And one way that really helps me tidy up code is to put it on its own layer. The layer only lasts .25 secs and auto closes. Its like a little function that fires then closes.
Have a look at the edited story file, but essentially what we do is:
1. every time the user clicks the tickbox, show code layer;
2. the code layer starts by changing all the states back to normal;
3. then it finishes by checking each object and changing its state to "OK" if the conditions are met.
P.S. I changed your conditions so that each object is unique, but its easy to change it to whatever you need.
Hi Andrew, thank you for your advice! A code layer is really a good idea I never thought about. It completely solves my question about what WHEN event should I set to trigger conditions. Thank you again!