Variables true/false with drop zone
Hi, I stucked at this:
I have a drop zone and 2 images.
I have 2 variables: "image1dropped" and "image2dropped" (set as false)
When you drop one of the images in the drop zone, the variable for that image changes to true.
When you drop one of the images in the drop zone, he checks if the other variable is true, and if yes, he shows a layer.
So, you only can see the final layer if the two images are at the drop zone.
The problem is:
You drop the first image in the drop zone, than you remove it. Now you drop the second one and the layer is show because the variable of the first one is true...
What I want is, IF is not there anymore (if you drop of) the variable need to be false again.
I try put another drop zone to set false, it works, but ONLY if the person drop the object in the zone... The problem is when people drop the thing outside all targets...
Any solutions for this?
Tnx a lot!