- Home /
The question is answered, right answer was accepted
Sound won't PLAY!!!!!!!!!!!!!!!!!!!!!!!!!!!!
My Sound will play, but another sound will interuppt it! HEEEEEEEEEEELLLLLLLLLPPPPPPPPPPPPPPPPPPPPPPPP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
OnMouseEnter Will play a sound, and then i click and a OnMouseUp sound should play, it does, but the OnMouseEnter sound will play and stop the OnMouseUp sound playing!
Post your script(s), use the code format button when you do post them it's the button with the binary on it next to the attachment button. You will also be less likely to get help when you post your questions like that.
Answer by clunk47 · Dec 09, 2012 at 05:18 AM
Yeah you really need to post your code up, especially when you are asking for help on a code that isn't working lol. We need to know what language you're programming with, we need to know if you're using the correct parameters.. In order to resolve your issue accurately. I'll try to run blind here, and tell you to make sure you're using PlayOneShot. This might not help because I have no idea what your code is. In C#, here's a simple example...
public AudioClip clip;
void OnMouseEnter() { audio.PlayOneShot(clip, 1.0f); }
void OnMouseUp() { audio.PlayOneShot(clip, 1.0f); }
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
A node in a childnode? 1 Answer
How would I make a laser beam sound? 1 Answer
Help with random melee noises? 1 Answer
Play sound on mouse enter 1 Answer