Toggling Sound on and off when dragging and dropping an actor
Hi guys,
I am currently creating a drag and drop game, that when an actor is dragged and released music will play. All is fine with this, although I am unsure as how to stop the music by reclicking the actor (after dropping and the current music playing), or by dragging the actor back to the original situated point. I wish to be able to drag and drop the actor, so that music will play when released - when touched again the music will stop - and when dragged and released again the music will restart. Does anyone know of a way to do this? Right now when I reclick and release the touch on the actor the music restarts. I have tried several threads and tutorials the stop music behaviour with no luck!. Attached are the rules I have so far...
I'd appreciate anyone's help.
Thanks!
RC
Comments
In fact, the rules I have so far are for the dragging and dropping of the actor, to which the music plays on release. This part is working fine. When clicking and releasing the actor it restarts the music. Thanks again for any input!
Anyone?