Forum Discussion
Simple drag and drop
I have 4 circles I want to the user to drag and drop into a funnel. Once all 4 are in the funnel, I want to display a resulting green circle. I have added a hover state to each of the purple circles to give the user more information on each concept.
It is not really a quiz, but an activity and I am having trouble figuring out the best approach.
Any suggestion are much appreciated!
- WaltHamiltonSuper Hero
I'm not sure that the funnel adds anything, since all the good takes place when hovering over the circle, and you are not planning to use the correct drops for anything.
Nevertheless, the attached sample has one slide that uses drag and drop, and another that uses hover only.
- ChristopherD273Community Member
Have you tried a number variable that increases when the circles are dropped? You could then display the green circle when the variable reaches 4.
- ErinDesmanCommunity Member
Hi! Yes, I was thinking about doing that. My only thought was what if the user takes one circle out or moves it around. But that was the track I was going on. Thank you!
- ErinDesmanCommunity Member
Hi Christopher,
I tried your suggestion and it seems to work ok. Thanks again!!
- WaltHamiltonSuper Hero
Adding to a variable count til a certain point is reached is always susceptible to inaccuracies, because as you say, what if the user clicks or moves one object twice? Better to change a variable or state, then go through and count the changes.
- ErinDesmanCommunity Member
Thank you!
- WaltHamiltonSuper Hero
You're welcome. PIAWYC (Pass it along when you can).