Sound Effects & Background Music | Build a 2D Platformer Game in Unity #11
Coding in Flow
In this part, we will add sounds and music to our game using the Audio Source component.
❗ Subscribe to the channel:
📣 Follow Coding in Flow on other sites:
🎓 Learn how to build a 2D game in Unity (beginner):
🎓 Learn how to build a 3D game in Unity (beginner):
💻 Find the BEST programming tutorials on TutHub:
❗ Subscribe to the channel:
📨 Subscribe to the Coding in Flow newsletter:
❓ Join our FREE developer community:
📣 Follow Coding in Flow on other sites:
💲 Business requests, sponsoring, etc.: [email protected]⭐
Hey Coding in Flow, I screwed up on this step and re-imported the game assets. That totally seems to have overwritten almost all of my work from this tutorial so far. Is there any way to revert that?
I watched the first five seconds on the video about 30 times before realising it was a joke :-/
thx i learn to much with you =)
Aww man, again those peoples are here which are giving ur vids dislikes ( just 2 of them )…
I request them to pls like this whole tutorial series or I will pour peri peri sauce in their breakfast!!
One thing more,
You have not added loop to your Moving Platform animation.
HeHe I caught u..
hay brother thanck you for this tutorial
Please help me, i followed all steps but don't working sound please
Thank you my teacher ! amazing lectures
i wanna ask, in playerlife script, why method RestartLevel( ) can be executed when player die, even though we didint call this method
Just wanna mention, i got all my stuff back, and now every few minutes i save my stuff. YOU. ARE. THE. BEST. PROGRAM. TEACHER. EVER!!! Because of you, my family is so proud that i wrote code, so thank you so much!
the intro xD
Классные уроки, понятнее чем на русском, при том что мой английский A2
can you please share the Scripts as well so we can get better work project flow
I love the intros you have for your tutorial videos
They make them unique
love your sense of humour and love this whole series, very helpful, thank you so much.
My player is finding some invisible walls that prevents the player from running over them… i can still move backwards and the "invisible wall" dissapears when i jump with my player. but there is those walls everywhere and they seem to chance places… i mean it must be something to do with my player movement… Could this be because my characters box collider is bad somehow or what? :O
lol I thought u fixed it, u forgot to put the moving platform's animation to loop.
Ok first off this tutorial is AMAZING. However, I do have to say that if I didn't know the basics of OOP and class structures, this would be a lot more confusing, and I think that may be why the later videos in this playlist have lower views. I think something you could've covered earlier in the series could've been some basic OOP principles, like what classes are/how their variables and methods work together/ parent & child classes/ etc.
Seriously though this is an insanely good tutorial, and you're a great teacher. I was always scared of getting into game development because I didn't know about the coding side of things, but this tutorial is making me want to quit my current path and become a game dev haha. Hope you do another tutorial in the future with 3D game development!!!
You have no idea how much this actually helped! Thank you so much❤
I'm not sure if you're making a lot of money off of these videos, but I really greatly appreciate these tutorials. They have been the most comprehensive, clear and easy to follow tutorials for 2D Unity design I have found online. Thank you for making them and I hope you make more soon.
Is there a way to make it so the background music doesn't reset when you die? Thanks, anyone 🙂
بهترین آموزش ۲d تو کل یوتیوب
thank you very much it was very very useful ❤🇮🇷
I noticed that the audio is just A BIT delayed. for example the jump sound, it plays after we jump by a split second, even though the code to play it is before the jump. I noticed it in my game too and I don't like it. This isn't an issue with the audio file either. Since mine starts immediately when played. Do you know if theres a solution for this issue?
this tutorial is underrated 🙁
Thank you for the tutorial.
Can I do something for the delay when the sound effect plays? There's about .5 sec delay always.
I watched both brackey and codemonkey both amazing guys but somehow your tutorial Here helped me out way more great work!!!
Im a college student studying game development. Not only are you effective with teaching these with perfect brief straight to the point explanations and examples but you are also very entertaining, comedy and humour is something I always appreciate! You are my actual hero!! (My professors are teach so repetitive and boringly long.)
Your animation on your platform isn't working ! I'M BETTER 😁
lol no but I do enjoy this tutorial, it is my first one ever and it's been really educational!
Hi, just wanted to say I love these tutorials. Just a question, when I jump, the audio seems to get "stuck" as it's going up. Where it'll just screech at me and only plays the correct audio on the "downward" part of the jump. I'm not sure how to fix it and I've followed all the steps.
Hi, I actually came here to find out one thing, and as a matter of fact I didn't(( I got bg musik, but when I restart the scene it restarts, as well as you after the hero dies, we go into resp, and track starts playing from the beginning – how can I fix it?? keep music play continuously no matter what happens in the game. It can be a tough poin in the game and player can die several times in a row, every time track is restarted it so annoying. Goodluck to you anyway, the lesson is realy nice))
If no one has subscribed yet, please subscribe
thank you so much this is the most basic tutorial
Dude, I really like this guide, i've been doing this game nonstop for a few days, and didn't complained for the difficulty of the thing even once, a really good guide!
Like come on this guy is my favourite. He always starts the videos with jokes
how to make audio sound for footstep,, ?
thanks so much man I have been watching this tutorial for a long time and i am making a game called Frog Adventure it will be on game jolt
i'm enjoying so much luv ur puns hahaha!
clean tutorial! thank you.
how do you make it so that the background music continues when you die?
ich rieche deutsch
I have a issue
I made an android game in unity with Android build setting
Everything is working cool ,specially sounds are also working good when I use it in my computer(unity)
But when I connect my phone to computer through usb and use unity remote app to cross check if everything is working or not
sound is comming from computer but not from my android device can someone tell how to fix it
I used audiomixer and audiomanager script and it is well working on computer
Around 2 months ago I began studying Game Development at the University and we just started learning how to code using C# (we played around with Visual Scripting before) and I just have to say, you are a lifesaver!🙇♀🙌 Just by following your tutorials I feel like I am actually starting to understand this. Thank you so much! 😄
Awesome tutorial, top!!! One question, when you die, if you press jump, you still hear the jumping sound – how do we correct this bug?
fun thing you can do.
you can use an AudioSource onto an enemy and make the spatial sound 3D.
so when they're near the player, they will begin to hear the sound louder and louder until they are in the view. I put little ghosts in my game and how a small vibe sound to detect when they are near they are invisble and only appear when they are super close to you.
can you make some walking sound, i really want it
I was using Unity wanting to build a basic game for Windows and Xbox. So tutorials like these help me get closer to doing so.
one of the best unity tutorials ever legit. I am really enjoying every second.
thanks, this helped so much
Why multiple audio sources per object? I thought it could handle multiple clips…