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. ...
ScottWiley1
4 years agoCommunity Member
The trigger that sets the battery to battery 1 state does not include a condition, as the following ones do. But even without one it doesn't seem to do what you want.
If you follow through the logic, it would run through the current order and quickly get to 4.
- Change battery to 1
- Change battery to 2 if currently at 1 - it is so...
- Change battery to 3 if currently at 2 - it is so...
- and so on.
Instead, you might try creating a new number variable to add up the drops (drop_counts).
Then another trigger to change the state of battery to a new state when drop_count changes if ... etc.
Then each drop adds 1 to drop_count with a condition that it doesn't exceed max and maybe have to check that that object hasn't been dragged/dropped before I suppose.
Hope that helps get you going in the right direction.
Related Content
- 10 months ago
- 7 months ago