Drag and Drop triggers that change image states not working properly
Dec 18, 2018
I have created a drag and drop from scratch and everything works fine with the exception of one element, a set of pictures I have set to change states when items are dropped is not functioning properly. Basically, I have two drop zones and six droppers. Each of the two zones takes three droppers apiece, and there is a corresponding animation associated with each drop. I have two images that change after each drop. Each has four states, one for the initial resting stage and one for each stage of the drop process thereafter (valued at 0-1-2-3). The triggers I have set up are essentially "if item 1 is dropped onto rectangle 1, change state of picture 1 to state 1, if state of picture 1 is 0." I have three of these triggers for each dropper, so the next would be "if item 1 is dropped onto rectangle 1, change state of picture 1 to state 2, if state of picture 1 is 1" and so on. This is meant to ensure that the picture progresses through the states properly, since the draggers can be dropped in any order. However, when the the first item is dropped, the image immediately jumps to state "3" rather than "1" for some reason. Any idea as to why?