Forum Discussion
MichaelRice-a6e
13 years agoCommunity Member
Using states to create select and deselect
How do I set my triggers to make an object appear selected when clicked once and normal when clicked again?
Cant seem to get it to work
MikeEnders
Staff
Michael,
That's a tough egg to crack. If you only use triggers, it's not going to work because both triggers are associated with the button and both fire each time you click. Hence, they interfere with one another. To do this, you'll need a little variable helper and some cool coding.
Get ready to Toggle your Variable!
I've attached the sample on how you accomplish this.
Mike
DyaneEspinosa-b
5 years agoCommunity Member
Wow!!!! This was posted 8 years ago, but it is working perfectly for me now in quarantine 2020!
Thanks
Dyane