Unity Sound Tutorial with James : JDAMS GAMES

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
6,551
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Oct 26, 2010

In this tutorial I attach sound to a trigger for an interactive object. I also demonstrate how to include background music in your scene.

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (Envatio)

  • You are my hero for posting this. There's so many damn complicated tutorials out and around for trying to get sound to work, yours is so simple and straight to the point I almost feel stupid for not figuring it out myself. Thank you, good sir.

  • @SublimeHysteria most welcome sir.

  • @Brandiumx - When you add the sound just leave the 3D sound button on and thats it. Once your playe gets close the sound will appear. For ambient music or water/fire sounds use a looping music sound and check the "loop" button in the inspector panel.

see all

All Comments (14)

Sign In or Sign Up now to post a comment!
  • This helped me out so much, thanks a bunch.

    I now for some work have several blocks all triggered with 'WTF BOOM' ^^

  • thx m8! You made my day!

  • I have a problem no matter what I tried I still get an error saying a semi collen is expected and i cant find the problem since its exacly as yours.

  • @BattleLegion Not sure if I'm too late but you can use the function Destroy(gameObject). Place this in the TriggerScript after the "audio.PlayOneShot(audio)", and if it works it should destroy the cube after playing the sound. Not tested, though.

  • @141ahmed141 it means that your first person controller is below your terrain. First make sure you have a terrain, and that your player is above it completely. Next make sure your first person controller has a rigid body attached.

  • How do you make it so that when you hit the box it disappears and you still hear the sound?

  • A sound tutorial recorded almost without sound. Hilarious

  • Very useful! Thanks for the help!

    Keep it up!

    (subscribed by the way)

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more