Drag and drop and resetting variables
Here's an interesting one for you.
I have created a drag and drop interaction that allows the user to stack boxes on to a shelf. When the user drops the box onto a shelf, it changes a variable to true or false. The user must get all the boxes in the right places to get all the variables to true and progress.
Now I have the logic setup correctly and I have also set it up so that if they move a box it changes the variable accordingly, even down to if they decide to change their answers, but there is one major flaw in my plan! if you drag a box off the shelf, the variable does not change, so you can remove a true answer and pass with 3 boxes!
Is there any function or method of resetting a variable, if the user drags a object off it's target?
Any help as always appreciated and I have included the project file