Reset Variable Value to Blank When Dragged out of Target

Sep 19, 2022

Hello everyone,

I am working on a password drag and drop game using a freeform drag and drop interaction, and I have some questions.

Question: Is it possible to reset the password value to blank if the dragged items are dropped outside the drop target? I know that the dragged items will return to its starting point if dropped out of target.

However, I want to reset the value at the same time. For example, if a player drag "1234" to the target place, but he regrets and wants to put it back and drags another password "4567", can we reset the value from "1234" to "blank" so we can turn it into a new value?

Thanks for your help, I've attached an example, so you can see what I'm talking about. As you can see from the example, even though I returned the password Summer to its starting point, the password value is still Summer, instead of blank.

Thank you so much.

 

1 Reply