Forum Discussion
JoelObrecht
3 years agoCommunity Member
Increment / decrement a counter based on states
Hello, I have an object with a hover / selected state.
I want to increment a variable when I click on this object to put it in the selected state, and to decrement it when I put the object in the ...
JudyNollet
3 years agoSuper Hero
When an object has multiple states, I suggest you avoid triggers with conditions that check if the object = Normal, because all of the states have a bit of Normal in them.
The easiest fix in this case is to use an "Else" statement in the trigger. For example:
This is demonstrated in the attached file.
Another option would be to use "≠ Selected" (instead of "= Normal").
Related Content
- 2 months ago
- 3 years ago
- 5 years ago