Help over Drag and Drop, object snap back
Jun 26, 2019
By
Siddhi Adhav
Hi All,
I wanted to build a Drag and Drop activity, where there is a definition and 2 circles. The idea is:
- when the user drags the definition over the incorrect circle, the circle vibrates and turns red and the definition snaps back to its original place
- when the user drags the definition over the correct circle, the circle turns green and the next slide appears
Issues
- Unable to change the state of the circle to green or red when definition hovers over it
- Unable to add the vibrate over hover mechanism
- To tackle this I created 2 separate layers (one for green, one for red) and used the change the state trigger to change colors of the circles
- The definition however, stays over the circle and does not snap back to its original place
I am a newbie so I hope my question makes sense
I'll be happy to provide any further details if needed
7 Replies
Hi Siddhi,
The attached example will change the circle colour to Green when the definition is dropped on the correct target and will change the colour to Red when it is dropped on the incorrect target and also return the definition to its starting position if dropped incorrectly.
It is not a perfect solution as I have had to use the "Object Intersects" trigger rather than the "Object Dropped On" trigger for the incorrect answer, otherwise the definition does not return to its start point.
You will also notice that when it does return, the circle remains red until you drag the definition over the correct circle, when it changes back to Normal as the other circle changes to Green.
In case you haven't yet worked out how to get the definition to return to its starting point if dropped incorrectly, all you need to do is to select Drag and Drop options when in slide view and select "Return item to start if dropped outside" and then "a correct drop target" from the drop-down list.
Hope this helps.
Hi Ned,
You absolutely Rock!!!! It really helped
I wanted to create a scenario where
2. And when the definition is dropped over the correct oval, it automatically moves to the next slide
The Problem is however that the user does not get to see the Green oval
Is there a way, where when the definition is dragged over the correct oval:
I have added the storyline file for your review
Again, thank you so much. I really appreciate it
Hi Siddhi,
This is a simple fix. In the attached version I have set the green and red circles to appear when the definition intersects the respective circle. This is also what causes the definition to hide when dragged over the correct circle (i.e. when the two intersect). However, you do not jump to the next slide until the definition is dropped on the correct circle and so, even if the user is fairly quick with dragging and dropping the definition on the correct circle, it will still turn green for long enough to be noticed.
I have also added an extra trigger for the green circle so that it changes back to Normal if the definition is dragged over it, but then moved away without being dropped. If you prefer this option to the way that the red circle currently operates, you just need to add an identical trigger for the red circle as shown below:
Hi Ned,
You are awesome!! Thank you so much. Sending you a virtual hug and tonnes of good vibes. May your day be as amazing as you are
Siddhi
Hey Ned,
Is there a way to make the circles have a motion (vibrate) when the definition hovers over it?
Adding motion path to the state is not possible. I tried adding a layer and then adding motion to that circle.
It kinda works, but not as polished as I hoped. Is there a workaround for this?
Hi Siddhi,
I have tried several options over the weekend, but unfortunately without success. Like you, the closest I got was by using layers, but it doesn't look particularly good, so I wouldn't recommend it. Perhaps someone else may come up with a solution, but I personally can't see one that works.
Sorry :(
Thank you so much for trying Ned. I really appreciate it. Have an awesome day.
This discussion is closed. You can start a new discussion or contact Articulate Support.