Drag and drop variables
Feb 06, 2015
Is there a way to reset a variable to 0 when the user completes an action?
I'm creating a drag and drop interaction with a change in variables depending on where the object is dropped. So for instance, if the object is dropped on a blue square, x=1, if dropped on a green square, x=2. There will be a graph to show the value of x once the object is dropped. I can set that up pretty simply, but I want the user to be able to move the object to a different drop location and see the new value of x rather than the addition of the two values for x.
Can this be done?