Forum Discussion
AmandaMadurski
4 years agoCommunity Member
Trigger Help For Drag and Drop interaction
Hello Everyone,
I'm working on an interaction and my triggers aren't behaving how I thought they would.
What I'm trying to do:
The user drags the numbered circles onto the the drop circles. ...
WaltHamilton
4 years agoSuper Hero
Scott is right. The triggers are cascading; all of them are executed each time an item is dropped, and each one finds the state, not as it was when it was dropped, but as it is changed by the previous trigger.
The easiest way to correct this is to reverse the order of the triggers that change the state of the battery bar:
Change to 4 when dropped if state is 3
Change to 3 if state is two, etc
That way if #3 trigger increases the state to 3, it is too late for #4 trigger to also increase it.
Related Content
- 10 months ago
- 7 months ago