19.Unity Racing Game Development Tutorial-Audio Manager

preview_player
Показать описание


Video Description:

Welcome to Unity5 2D car racing game tutorial series. In these series of videos, we'll create a complete 2D car racing game from scratch using Unity5 . We'll learn step by step how to add the car, how to create a racing track, how to control the car, how to move the car, how to add enemy cars, how to add score using Unity5. We'll create this car racing game for two different platforms, first we'll learn how to control the car by using keyboards, then we'll learn how to control the 2D racing car using accelerometer of your android mobile or iphone device. So that you can control the car by tilting your mobile device. You can also publish the finished game to google play store and apple app store and you can add a lot of features to this 2D car racing game. There are no tutorials on 2D car racing game on youtube using Unity5 , which teaches step by step how to build a simple 2D car racing game for complete beginners. Here you'll learn how to create a 2D car racing game step by step completely from scratch. Building a simple 2D racing game for android is not that tough, after finishing this tutorial, you can create some awesome android car racing game.

Thanks a lot for watching this video, if you have any questions, write those in comments. I hope you enjoyed. Please subscribe and like , comment , share. Thank you very much. :)
Рекомендации по теме
Комментарии
Автор

Even after 5 years it's still useful!

RazorideYT
Автор

I have seen all the 19 tutorials and i want to say that they are simply awesome for a newbie like me u very much ....keep posting.

RahulSinghDec
Автор

To pause the sound on pressing pause button, use

public audioManager am;;

public void Pause(){
if(Time.timeScale == 1){ // this means that the game is running
Time.timeScale = 0; // pause the game
am.carSound.Stop();
}
else if(Time.timeScale == 0){
Time.timeScale = 1;
am.carSound.Play();
}
}

Then go to the UIManager & add the AudioManager.

pranjalsingh
Автор

Great Tutorial for learning unity game. I have a question just for curiosity. How can I add a crash sound when collide. I want to make something like this. public AudioSource[ ] carSound, which would contain two audio source one is car sound and another is crash sound. I want to play car sound while normal racing and then crash which crashing with other car. something like this. audio1.Play();
// or
audio2.Play(); but could not get it how should I apply.

nowshinareebah
Автор

Hey thanks for the tutorials, how do you add multiple sounds to the audiosources?

Jonlly
Автор

Very good tutorial! Do you know how I can add a countdown (3-2-1 go!) ?

vladoch
Автор

Great Tut, a bit confussing but after watching like a hundred time's I think it's drilled into my up the good

gordonmctague
Автор

Sir ap unity ka Kon sa version use Kar rhe h
Plz

aviralomar
Автор

1st and Glad You're Back Love Your Tutorials!

rafaceballos
Автор

hello sir,
I've tried building the game and installing the built .apk on my android device. It installed successfully and runs fine too, but there is no movement of my car.. are there anymore steps to implement movement of my car using my touch screen, if yes then have you uploaded the steps to implement the same?

Also, thanks a ton for making such awesome tutorials!

amankulkarni
Автор

Can you perhaps do a Car Racing Game Tutorial update on making the spawned cars move randomly left and right a bit and vary their relative speed a bit so some move faster/slower and soon. This makes me think you could tie that into Level2 ie where the cars spawned behave in this way. Then also show how to save the score from level 1, carry it over to level2 and continue playing. Perhaps Level 1 can auto advance to Level 2 once the player reaches a certain high score like 500 and is still alive, or otherwise after a set timer, player could drive through a level completed banner (tada) get some bonus points for level complete, and advance to level2. What I want to learn more about is how to preserve player preferences between levels.

snakeplisken
Автор

Awesome, but what if I want to add a sound when the car hits another car ?? like a crash sound ? how do I do it ?

peaceandquiet
Автор

can you please tell me how can i make the sound stop when i pause the game, i have tried implementing am.carsound.stop and .play methods in pause and resume methods but it won't work.

makmakavelli
Автор

Thanks charger games awesome tutorials much appreciated efforts from you!

ibrahimmahmoud
Автор

hi, great video as always. just wondering if there is any sound effect making application that you would recommend.
thanks again

halfof
Автор

Hello Thanks a lot for this tutorial. I hope you upload 3D tutorial also, and now my query is how to set a turn track in this game?

ankitapatel
Автор

hey..what should i do after this ? i completed this game..can you make further videos of this game regarding touch controls and how to publish this game on android..

MrNiraj
Автор

heyyyy i am not able to find your audio link will you pls elabret it. its very help full for me.

gauravkasture
Автор

Great u pls give detail information for building this one for android devices

chandrakanth
Автор

Bugs found:
1) Sound plays even when paused
2) Can pause even after game is over
Solution for both:

public void Pause()
{
if (gameIsOver) return;
if(Time.timeScale == 1)
{
Time.timeScale = 0;
am.carSound.Stop();

}
else
{
Time.timeScale = 1;
am.carSound.Play();

}

}

DM
visit shbcf.ru