Drag and Drop - Add sound feedback on drop?
Aug 03, 2012
By
Jeff Forrer
Hi.
Trying to figure out if you can add a 'sound' to an incorrect or correct drop easily when the user drops an item on a target?
I have a sorting drag and drop. Sorting a dozen or so draggers into 3 different buckets.
I am thinking you would need to add two separate triggers on each drag object? So, when dropped on wrong bucket, trigger to play media wrong sound, and dropped on correct, play media correct sound?
Any easier way? I tried to add sound to the DropCorrect and DropIncorrect states but that did not seem to work.
Thanks!
8 Replies
Maybe you can add a sound to a layer that gets played on Drop. I used this hack for a similar project and it worked fine. Doesn't seem like an elegant solution, but it worked.
Slide layers are a good way to go about it.
Another idea is to place all audio files on your base layer and evaluate drag correct and drag incorrect states of your objects.
Demo
Source
The drop correct trigger plays a one-second audio clip while the drag incorrect trigger plays a six-second clip. You'll notice that the clip can't be restarted until it finishes playing. The workaround is to use very short clips for feedback or duplicate the longer clips--one for each drag object--and trigger them individually.
I prefer using shorter clips
Awesome
Thank you.
You can restart the audio, if you use different layers for each object, it is probably better to use different layers anyway
Awesome, thanks all for your help!
Many thanks, David.
Hi everyone,
I like the state method of playing correct or fail sound... but when I was trying to add sound to the actions like play media when object is dragged over the background...play media when object dropped on the target area....it is not working and I don't know why, maybe someone can help?
On the slide, the "man" note is not working, maybe there is something wrong with too many play media triggers?... but the "woman" note is working just fine with no play media trigger on. The "man" note cannot be dropped on the target area any more.
Thanks!
Hi everyone again, I investigated the demo that David showed, then I add hotspot just to be more like the succesful one, and it works, I don't know why, but it is working just fine!
This discussion is closed. You can start a new discussion or contact Articulate Support.