Download complete Unity project 👉 / top-down-car-49913192
This is the 3rd part of our 2D arcade style top down car controller in Unity from scratch. If you missed part 1 you can view it here: • How to create a 2D Arcade Style Top Down C...
In this part of the video we will add sound effects to our car and also dive into Audio Mixers and whey they are soooo good. After watching this you should understand why you should always use Audio Mixers and start with them early in a project to make life easier for you as a developer.
🛑 I accidentally cut away the part where I added the following to TopDownCarController.cs
public float GetVelocityMagnitude()
{
return carRigidbody2D.velocity.magnitude;
}
So if you get an error saying CarController does not contain a definition for GetVelocityMagnitude then add the above 👆👆👆 if you are using the source from Patreon you can ignore this as it is added there.
With this tutorial series you’ll be able to make a physics based race game with lots of drifting in no time. Car movement is often a challenge for a lot of developers but using simple tricks is often the best solution. If you want to try a game which uses this mechanic then feel free to take Total
Arcade Racing for a spin.
📍 Support us on Patreon to help us make more videos like this one / prettyflygames
Join Our Community! We look forward to welcoming you.
Discord: / discord
Twitter: / prettyflydev
This component is used in Total Arcade Racing which you can play on
🖥 Steam ► https://store.steampowered.com/app/12...
📺 Nintendo Switch ► https://www.nintendo.com/games/detail...
🚗 PlayStation ► https://store.playstation.com/en-us/c...
🎮Xbox ► https://www.xbox.com/en-us/games/stor...
Music: https://incompetech.com/wordpress/201...
Chapters:
00:00 Intro
00:30 Audio Mixers Creation - Unity
02:34 Car SFX Handler (engine and tire screech) - Visual Studio
09:42 Assign audio sources - Unity
14:15 Create Collider 2D - Unity
16:22 SFX for collision - Visual Studio
18:11 Test SFX collisions - Unity
18:37 The benefits of Audio Mixers - Unity
21:25 Audio Mixer expose to scripts - Unity
22:25 Audio Mixer expose to scripts - Unity
22:27 Audio Mixer change value in script - Visual Studio
23:17 Next video = AI
23:36 Example - Total Arcade Racing
#PrettyFlyGames #LearnUnity #UnityTutorials #gamedev