Тёмный

How To Make a Countdown Timer in Unity 

Turbo Makes Games
Подписаться 26 тыс.
Просмотров 63 тыс.
50% 1

📌 Download the project files from this video: tmg.dev/UnityCountdown 📌
🎮 Let me know what other topics you want to learn about 🎮
👇 See below for time stamps 👇
0:00 - Introduction
1:16 - Unity UI Setup
3:30 - CountdownController.cs script
10:25 - Final Unity Setup and Demonstration
Please 'Like' this video and share it with anyone who is interested in video game development.
Subscribe to the channel for much more independent video game developer related content including tutorials, design breakdowns, industry events, VLOGs, and much more fun stuff!
Links:
Blog:
turbomakesgames.com
My Game Development Studio's Website:
homecookedgames.com
My GitHub:
github.com/JohnnyTurbo
Music by: Joakim Karud / joakimkarud
My Setup:
Camera - Yi Action Cam - amzn.to/2FSRxLk
Webcam - Logitech C922x Pro - amzn.to/2HTinFp
27" 4K Monitor - Asus PG27AQ - amzn.to/2Mkg7X2
Laptop - Asus GL502VS - amzn.to/2FNKiET
Keyboard - Das Keyboard 4 Ultimate - amzn.to/2W7SHZd
Other Keyboard - Ducky One 2 Mini - bit.ly/2I8ivQI
Headset - PlayStation Platinum Wireless Headset - amzn.to/2FR6n58
As an Amazon Associate I earn from qualifying purchases.
#UnityTutorials #Countdown #MadeWithUnity

Опубликовано:

 

28 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 164   
@VezixHaikal
@VezixHaikal 3 года назад
the first 2 minutes is straight up amazing, i love how you do tutorials, no bs, straight up telling exactly what you are doing and why you are doing it, genius!
@TurboMakesGames
@TurboMakesGames 3 года назад
Thanks for the positive feedback here! I always try to be respectful of my viewers' time, so good to know you like this format 😀
@jdt231
@jdt231 3 года назад
Great amount of detail & clear concise instructions without any unnecessary faff. Keep up the great videos!
@TurboMakesGames
@TurboMakesGames 3 года назад
Much appreciated, thanks for the positive feedback!
@meyragonul
@meyragonul 2 года назад
It's very clear and comprehensive. Thanks for the tutorial
@TurboMakesGames
@TurboMakesGames 2 года назад
So glad to hear this, all the best!
@revraitah
@revraitah 4 года назад
Nice one! It helps a lot for my endless runner project, keep it up!
@TurboMakesGames
@TurboMakesGames 4 года назад
Great to hear! Seems like this countdown timer would fit really nicely in an endless runner 😊
@casual2814
@casual2814 2 года назад
Very good tutorial. I like how you explain every part with details. :)
@TurboMakesGames
@TurboMakesGames 2 года назад
Glad to hear it helped you out!
@AlexAraujo067
@AlexAraujo067 3 года назад
Thanks for the tutorial. It helped me a lot!
@TurboMakesGames
@TurboMakesGames 3 года назад
So glad to hear this!
@adrianfuster4076
@adrianfuster4076 4 года назад
Great work! Continue like this bro :)
@TurboMakesGames
@TurboMakesGames 4 года назад
Thanks, glad you liked it! Lots more on the way 😀
@mirm0n
@mirm0n Месяц назад
awesome! Very helpful
@sarahfable257
@sarahfable257 4 года назад
Great video, helped me alot!
@TurboMakesGames
@TurboMakesGames 4 года назад
Awesome, great to hear!
@user-jz2tl1wo7j
@user-jz2tl1wo7j 2 года назад
Thanks so much for the tutorial!!
@TurboMakesGames
@TurboMakesGames 2 года назад
Absolutely, glad it helped!!
@basketberoende
@basketberoende 4 года назад
This video should have more views! Greate job!
@TurboMakesGames
@TurboMakesGames 4 года назад
Appreciate the kind words! Glad you found it helpful 😊
@oguzkaancomoglu
@oguzkaancomoglu 2 года назад
life is beautiful when shared, thank you
@TurboMakesGames
@TurboMakesGames 2 года назад
That's a nice phrase, thanks for stopping by!
@suicune2001
@suicune2001 2 года назад
Perfect! Thanks!
@TurboMakesGames
@TurboMakesGames 2 года назад
Sure thing!!
@jsivonenVR
@jsivonenVR 3 года назад
Thanks a lot bro, this vid make it easy for me to implement a countdown timer on my lil VR game.. And I also learned what in tarnation them coroutines are... 😂👌🏻
@TurboMakesGames
@TurboMakesGames 3 года назад
That's awesome! Funny, the first time implemented a countdown timer was in a VR game - it was on Google Cardboard though 😂 Yeah coroutines are awesome, I use them all the time! Best of luck on your VR game 👊👊
@bonfaceosuka
@bonfaceosuka 3 года назад
Thank you very much for this tutorial has really helped me alot .
@TurboMakesGames
@TurboMakesGames 3 года назад
Appreciate it, great to hear 😀
@bonfaceosuka
@bonfaceosuka 3 года назад
@@TurboMakesGames Yeah Infact Im almost done with my project .
@md.muzahidulislam4457
@md.muzahidulislam4457 2 года назад
though it's a simple tutorial but i like your teaching technique, go ahead brother
@TurboMakesGames
@TurboMakesGames 2 года назад
Appreciate the feedback 😊
@leonardocastrovalladolid2730
@leonardocastrovalladolid2730 4 года назад
Good job, I was intended many times but it didn't work, You saved me! Thanks
@TurboMakesGames
@TurboMakesGames 4 года назад
Glad I could help 😊
@user-lb8rg1df7v
@user-lb8rg1df7v 9 месяцев назад
Thank you so much!
@TurboMakesGames
@TurboMakesGames 9 месяцев назад
Sure thing, glad it helped!
@sandroalderucci7949
@sandroalderucci7949 3 года назад
You're doing God's work bro
@TurboMakesGames
@TurboMakesGames 3 года назад
Glad to help 😀
@mrkatlet
@mrkatlet 3 года назад
Damn son, thanks my man 12am - 7am I would probably do it by adding stuff
@TurboMakesGames
@TurboMakesGames 3 года назад
😁😁😁
@lydludydyysylmhd
@lydludydyysylmhd 3 года назад
Thanks!
@TurboMakesGames
@TurboMakesGames 3 года назад
Absolutely! Glad it helped
@amirmughal7161
@amirmughal7161 4 года назад
Thanks Alot
@TurboMakesGames
@TurboMakesGames 4 года назад
Sure thing, glad it helped you out!
@silong8352
@silong8352 3 года назад
brilliant code and explanation thank you very much!
@TurboMakesGames
@TurboMakesGames 3 года назад
Thanks! Glad you found this helpful 😀
@rmt3589
@rmt3589 11 месяцев назад
Just discovered you today. Mentioned Code Monkey on Twitch to someone, and they said they watch you and "etc." as well. Congrats on the new subscriber!
@TurboMakesGames
@TurboMakesGames 11 месяцев назад
Haha right on, thanks for stopping by! Hope you enjoy 😊
@yapyiheng627
@yapyiheng627 4 года назад
Cool video, but for my project i want the game to be on a pause mode during the count down, does this work for having all the gameOject to be in a pause mode so that they dont move or spawn?
@TurboMakesGames
@TurboMakesGames 4 года назад
Yes, if you wanted to do this, you would set Time.TimeScale to 0 at the beginning of your game (to effectively pause your game) then use WaitForSecondsRealtime in your coroutine (this ignores any time scaling). Once your timer hirs zero, then set Time.TimeScale back to 1. Hope that helps, let me know if you have any other questions!
@VuleProductions
@VuleProductions 2 года назад
This countdown works perfectly fine in Unity Editor, but when i build the game (export it into .exe) and run it, the Start() method doesn't even run. How can i fix this? (i made it for a racing game with a main menu but i don't think that makes a lot of difference)
@KaluMalama
@KaluMalama 2 года назад
ThankYou
@TurboMakesGames
@TurboMakesGames 2 года назад
No problem!
@RushlineCode
@RushlineCode 2 года назад
then how do i make some gameobject can move foward in 3 seconds?
@noodlesonsuit
@noodlesonsuit Месяц назад
New subscriber here, recently seen this video. just a question i'm making a game similar to googles dino and i want to put timer before the game starts. the problem is that it seems like the game keeps on tunning despite the timer any way where i could sync the two?
@afterbirthcare4277
@afterbirthcare4277 4 года назад
hey...Great video.. i like the way u explain things.. i have one issue , when my counter starts i also can play my game even if its counting
@TurboMakesGames
@TurboMakesGames 4 года назад
Thanks! There are a couple ways you can do this - one easy way would be to just block player input before your game says "GO!" another way you could is set Time.TimeScale to 0 which will freeze everything in your game. Just make sure to use Unscaled Time for your countdown timer so it still counts down properly. Hope that helps!
@bielalti805
@bielalti805 4 года назад
@@TurboMakesGames I have the same issue and I can't find the way to fix it. I can't find the way to freeze everything except the countdown. It either freezes everything or nothing. Thanks for the video, it has been very useful anyway :D
@TurboMakesGames
@TurboMakesGames 4 года назад
@@bielalti805 Yes, that is why you need to use unscaled time for the countdown, because unscaled time isn't affected when you set the time scale to 0 to freeze everything else. The way you do this in a coroutine is to do a yield return new WaitForSecondsRealtime(timeInSeconds) Hope that helps!
@Adam-gf3jg
@Adam-gf3jg 4 года назад
Thanks for the video. How can I make an Image disappear after the countdown time has ended?
@TurboMakesGames
@TurboMakesGames 4 года назад
At 9:08 in the video, I disable the GameObject of the text field to make the countdown text disappear. To make an image disappear, you would just need a reference to the GameObject holding the image then disable it in the coroutine at this same point, similar to how I disable the text GameObject.
@sufianahmad7337
@sufianahmad7337 3 года назад
Thanks
@TurboMakesGames
@TurboMakesGames 3 года назад
No problem!
@nitupervin558
@nitupervin558 2 года назад
How do i make my game run after the timer is finished
@liontoby9250
@liontoby9250 3 года назад
I keep on getting the error "Assets\START.cs(12,24): error CS1503: Argument 1: cannot convert from 'System.Collections.IEnumerable' to 'string'" how do I fix it?
@sorokader6510
@sorokader6510 Год назад
'WaypointCOntroller' does not contain a definition for 'instance'. please help me to resolve this
@karimosama3819
@karimosama3819 2 года назад
hi, i have done all of the steps but at the end my car is still moving while the counter is going,can you please help
@TurboMakesGames
@TurboMakesGames 2 года назад
Typically the best approach is to have a bool variable on your vehicle controller script called something like "canPlayerMove" At the start of the game, this value will be set to false, when you check for player input, if canPlayerMove is set to false, then ignore input so the car doesn't move. When the timer ends, just set canPlayerMove to true and your player can move as normal. Hope that helps!
@shem4666
@shem4666 3 года назад
Yow, thanks for the tutorial. i need some help here. I am able to move my character while the countdown is running. PS..I don't have a gamecontroller script so I wasn't able to refer to the begingame(); . I would appreciate your help.
@TurboMakesGames
@TurboMakesGames 3 года назад
So basically, the way I accomplished this is I had a bool variable that would keep track of whether or not the player can move. When I check for input in my game I check to see if the player can move or not. If it cannot move (i.e. at the start of the game) then I just ignore the input. In my GameController.BeginGame() function then I set that value of canMove to true so that the player is able to move freely. Hope that helps!
@shem4666
@shem4666 3 года назад
@@TurboMakesGames thanks
@duyguyldrm8008
@duyguyldrm8008 3 года назад
@@TurboMakesGames Thanks ❤
@chronabigaming509
@chronabigaming509 4 года назад
Can i please know how did you make your gamecontroller.instance.begun(); function Bro also can you tell me what your 4 hour game tutorial is i want to know i didnt find it in your channel
@TurboMakesGames
@TurboMakesGames 4 года назад
I setup the GameController as a "Singleton." To do this, at the top of the GameController class I defined: public static GameController instance; Then in the Awake() function I set instance = this; Hope that helps! And here is the video for my Twin-Stick Shooter tutorial: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-BbnQjV_udF8.html
@chronabigaming509
@chronabigaming509 4 года назад
@@TurboMakesGames thanks man
@MetalAnimeGames
@MetalAnimeGames 3 года назад
How can you make this countdown timer work while the game does not start/ is paused until after the "GO!" goes away? My counter works OK, but the game is going on in the background anyway.
@TurboMakesGames
@TurboMakesGames 3 года назад
You can use yield return WaitForSecondsRealtime to continue the countdown timer if the game is paused - with TimeScale set to 0. If you want your game to continue running in the background however, you need to go to your Player Settings and enable "Run in Background" Hope that helps!
@PCMxZEBRA
@PCMxZEBRA 4 года назад
Can you tell us hot to freeze the game while the animation loads instead of a start game?
@TurboMakesGames
@TurboMakesGames 4 года назад
Yes, if you wanted to do this, you would set Time.TimeScale to 0 at the beginning of your game (to effectively pause your game) then use WaitForSecondsRealtime in your coroutine (this ignores any time scaling). Once your timer hits zero, then set Time.TimeScale back to 1. Hope that helps, let me know if you have any other questions!
@NoelAbhi1
@NoelAbhi1 3 года назад
@@TurboMakesGames Hi, Can you please show us the code or how to do this?
@anthonylewis3804
@anthonylewis3804 2 года назад
i need help with a problem at the part where you used your gamecontroller.instance.BeginGame(); i get a error gamecontroller does not contain a definition for 'instance' please help
@TurboMakesGames
@TurboMakesGames 2 года назад
That is because I have my GameController setup as a Singleton. A singleton is a design pattern you can use to essentially access objects from anywhere without explicit references to them. Look up some other videos or articles on Singletons in Unity to get a better understanding of how they work. Hope that helps!
@anthonylewis3804
@anthonylewis3804 2 года назад
@@TurboMakesGames ok thanks bro
@MHermansson
@MHermansson Год назад
Im trying to use this for a flappy bird style game. in the begining, but it only works for the first start and when i press play again it does not show. The countdown Time is then set to 0. How would i go about setting it back to 3 everytime the function runs? (if you see what i mean :) )
@TurboMakesGames
@TurboMakesGames Год назад
Good question - in that case, it might make sense to have a function called like ResetTimer() that resets the countdown time variable to 3 then calls the start coroutine method. Hope that helps!
@anmaavr8315
@anmaavr8315 Год назад
This is awesome! Thank you for the video :) I added Time.timeScale = 0; to freeze and added unscale Time.timeScale = 1; it working but I have one problem. I have coutdownDisplay.text = "Go!"; outside of the while loop. The Go text won't display after the 3, 2, and 1 countdown is fired. However, it will display if I don't have the line of countdownDisplay.gameObject.SetActive(false); How can I implement Go text with using disabling the countdownDisplay at the end?
@TurboMakesGames
@TurboMakesGames Год назад
Make sure you have the line "yield return new WaitForSeconds(1f);" after you set the text to "GO!" and before you disable the GameObject. That will make the Go text show on screen for 1 second
@anmaavr8315
@anmaavr8315 Год назад
@@TurboMakesGames Thank you so much! That's I was missing!
@sakuna2586
@sakuna2586 3 года назад
How did you make your Star game logic
@TurboMakesGames
@TurboMakesGames 3 года назад
The start game logic basically just sets up objects and values for the game to start. Was there something specific in your game that you were trying to implement?
@cheyennegeorge9133
@cheyennegeorge9133 2 года назад
How would I get the countdown to show minutes and seconds? Please help 🙏
@TurboMakesGames
@TurboMakesGames 2 года назад
Hello - good question! You can use C# string formatting to display the underlying float time value in hours, minutes, seconds, etc. - first you need to make the float value into a TimeSpan type, then you can easily display it how you want it. In the "in-game timer" video I made, I show you how to do just that, hope that helps! ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-qc7J0iei3BU.html
@George-br9xq
@George-br9xq 2 года назад
when I add GameController it gives me error :/
@narendrakumarjha734
@narendrakumarjha734 4 года назад
From where did u learn all this
@TurboMakesGames
@TurboMakesGames 4 года назад
Pretty much the same way I learn anything else... I have a problem then I look for the best solution based off of what I already know then I do some research to fill in the gaps in my knowledge or figure out what other people have done to solve the same problem. Then the most important part is actually implementing the solution to figure out how well it actually works.
@abhishekpatil1123
@abhishekpatil1123 3 года назад
hey bro it is showing me that gamecontroller is not defined in current context why unity cannot identify gamecontroller keyword Please Help!
@BOUBAKR1
@BOUBAKR1 3 года назад
same to you
@TurboMakesGames
@TurboMakesGames 3 года назад
GameController is a custom class that I've created that holds some general logic about setting things up for my game. Feel free to check out the full tutorial for the context of creating a GameController class - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-BbnQjV_udF8.html
@killersku1192
@killersku1192 3 года назад
Hey for some reason the countDown is going down faster then yours how would i fix
@TurboMakesGames
@TurboMakesGames 3 года назад
Are you setting the time scale anywhere in your project? If so, you can still access the "unscaled time" and run your countdown timer off that.
@heroalireza90
@heroalireza90 4 года назад
Can I do that but whenever I press a button I have a pause menu when I press the resume button I want it to count down for 5seconds and then return the game to time.deltatime 1f
@TurboMakesGames
@TurboMakesGames 4 года назад
Yes - and I assume you mean time.timescale equal to 1f? Because time.deltatime = 1f means your game would be running at 1 frame per second. But yes, you could set the timescale to 0 and pause your game then when you want to play your countdown timer, you will use WaitForSecondsRealtime() to count the timer down, once it reaches 0, then you can set the timescale back to 1. Hope that helps!
@heroalireza90
@heroalireza90 4 года назад
@@TurboMakesGames thanks alot that helped me
@urbanoj621
@urbanoj621 3 года назад
Where can i get GameController Script??
@TurboMakesGames
@TurboMakesGames 3 года назад
That is something that you would create on your own and add your own logic into. You don't necessarily need to run this on a GameController - you could use your PlayerController or something else to trigger the start of your game. Hope that helps!
@Metalhelloween007
@Metalhelloween007 4 года назад
wow it nice code but code not counting if i use reset level how to fix this?
@MinecraftTutorial
@MinecraftTutorial 3 года назад
plz help
@hellomaifrendi_6658
@hellomaifrendi_6658 3 года назад
When I click on play, the game and the countdown start at the same time. In your video the countdown starts first and then the game.
@TurboMakesGames
@TurboMakesGames 3 года назад
There are many ways to do this, but one approach would be to have a bool variable to determine if the player can enter input. This value can be set to false when the game loads then set to true once the timer ends and the game begins. You can see how I do this in the full game tutorial here: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-BbnQjV_udF8.html
@hellomaifrendi_6658
@hellomaifrendi_6658 3 года назад
Thanks.
@ApexArtistX
@ApexArtistX 4 года назад
what about real count down date with DateTime.UtcNow
@TurboMakesGames
@TurboMakesGames 4 года назад
Should be able to work, give it a shot!
@greragon6458
@greragon6458 3 года назад
How can you restart it with a button ?
@TurboMakesGames
@TurboMakesGames 3 года назад
Great question. The StartCoroutine() method returns a Coroutine type, so you can store that as a private field. If you create a Restart() method you can simply stop the coroutine you stored then start the coroutine again and store the returned value back into that field so you can reference it should you need to restart again. Hope that makes sense!
@lucasnasr8496
@lucasnasr8496 3 года назад
how do you disable all the controls until the timer ends
@TurboMakesGames
@TurboMakesGames 3 года назад
Great question. This is why it makes sense to create your own input management class. Then you only have one central location that handles all the input in your game. Then it's as simple as setting a bool variable for canTakeInput. If that value is false, then tell your code not to process the input. Once the timer ends, flip that variable to true and process your input as normal.
@lucasnasr8496
@lucasnasr8496 3 года назад
@@TurboMakesGames Alright, Thanks
@sedefkadifeci
@sedefkadifeci 4 года назад
I cannot do Begin Function. I have a mistake. Please Can u help me?
@TurboMakesGames
@TurboMakesGames 4 года назад
What isn't working? Are you getting some kind of error message? In this video, I have the GameManager setup as a singleton so I can call functions on it directly from other scripts. Your "BeginGame" function for your project will likely be different than how I have mine setup, but using a singleton to access it could still work just fine.
@nunorocha291
@nunorocha291 4 года назад
@@TurboMakesGames i have the same error, becouse in your gamecontroller you probably crate something call BeginGame, some class, idk, so we dont know what code we need to put in gamecontroller script for the countdown script part work without errors, in my code I found a way to dont make an error so that as I don't know what you had written in the begingame part of the gamecontroller script my character can move around while the countdown happens.
@nunorocha291
@nunorocha291 4 года назад
when i ask for visual studio tips he creates this code in gamecontroller : internal void BeginGame() { throw new NotImplementedException(); }
@BOUBAKR1
@BOUBAKR1 3 года назад
I have a problem with a word .instance.
@TurboMakesGames
@TurboMakesGames 3 года назад
The .Instance is how I setup the GameController as a singleton. Basically it provides a way that I can easily access the single GameController script from any other script in my code. You define a singleton like this in your GameController class: public static GameController Instance; Then set it inside the Awake() function like this: private void Awake(){ Instance = this; } Then from any other script you can just call: GameController.Instance.AnyMethodOnGameController(); Hope that helps!
@shreddedOrphans
@shreddedOrphans 3 года назад
you are my hero i will give free dollar B)
@TurboMakesGames
@TurboMakesGames 3 года назад
😁😁 Glad you found it helpful
@HughMongousPC
@HughMongousPC Год назад
"GameController does not exist in the current context" "not all code paths return a value"
@mickmickymick6927
@mickmickymick6927 3 года назад
What was explained was well explained but half the point of a countdown timer is to deactivate player controls, which was not explained.
@TurboMakesGames
@TurboMakesGames 3 года назад
Glad you found the countdown timer useful. In the full game tutorial I took this from, I go over how to implement this. In general you just need to have a bool variable on your input controller to track if the player can or cannot move. At the beginning of the game, you'll set this to false and when the countdown completes, set it to true. Then whenever you check for input, check the bool variable first - if it is false, just go ahead and ignore the input - if it's true, then process the input as normal. Hope that helps!
@mickmickymick6927
@mickmickymick6927 3 года назад
@@TurboMakesGames Thanks
@Sharkoz
@Sharkoz 3 года назад
I don't have game controller, could someone help me ?
@TurboMakesGames
@TurboMakesGames 3 года назад
You don't need a game controller for this, the countdown timer is separate from any input logic 😊
@bartiflette4199
@bartiflette4199 3 года назад
@@TurboMakesGames yeah but for the gamecontroller.instance.BeginGame();, they say no object find for this
@TurboMakesGames
@TurboMakesGames 3 года назад
Ohh okay I see. The GameController class is a custom class that I made that has some logic to start some things in the game. That part isn't tied into the timer itself so you can just remove it and replace it with whatever start game logic you have.
@bartiflette4199
@bartiflette4199 3 года назад
@@TurboMakesGames yeah but I must put something, bc I can't juste write Instance.BeginGame(); my question is idk what put before that
@TurboMakesGames
@TurboMakesGames 3 года назад
@@bartiflette4199 You only need that if you want to setup some things in your game when the timer reaches 0. In my game I have the GameController class setup as a "singleton" meaning I can access its public functions from anywhere by calling GameController.instance.AnyPublicFunction() Another way to do this would be to have a public GameController field called gameController, then you could drag in your GameController object in the Unity scene, allowing you to call gameController.AnyPublicFunction() Hope that clears things up a bit, let me know if you still have any questions.
@filipdronik601
@filipdronik601 4 года назад
public Text dont work i think
@TurboMakesGames
@TurboMakesGames 4 года назад
How is it not working for you?
@glitchgrid5088
@glitchgrid5088 3 года назад
the game isnt pausing
@TurboMakesGames
@TurboMakesGames 3 года назад
Are you setting Time.TimeScale to 0f? That should pause the game for you
@MinecraftTutorial
@MinecraftTutorial 3 года назад
it only works one time
@TurboMakesGames
@TurboMakesGames 3 года назад
Yes, but you should be able to add in a reset function and reset it automatically or whenever you need to in your game.
@KBforJesusChrist
@KBforJesusChrist Год назад
Damn all those tutorials and no timer out trigger lose game can u make a tutorial on that
@TurboMakesGames
@TurboMakesGames Год назад
It would be fairly easy to extend the functionality of something like this to enable a lose game state as you described. Once the timer expires, instead of calling a begin game method, maybe you call and end game method or event to do all your end game stuff like pausing movement and showing a Game Over UI.
@KBforJesusChrist
@KBforJesusChrist Год назад
@@TurboMakesGames thanks
@StickyLabDev
@StickyLabDev 2 года назад
no one make countodwn timer like in moba ,,( the buttons ) , sofar i couldnot find tutorials
@TurboMakesGames
@TurboMakesGames 2 года назад
It would be really similar to do this, you would just need to start a new coroutine for each button cooldown. You could then use your internal countdown value to affect the UI so the player can see when the cooldown expires.
@eklip5560
@eklip5560 4 года назад
Send me please code.
@TurboMakesGames
@TurboMakesGames 4 года назад
You can download all project files, code included, through the link in the description of the video
@hohoho2546
@hohoho2546 4 года назад
TBH its useless!!!
@TurboMakesGames
@TurboMakesGames 4 года назад
Sorry you didn't find this video helpful. Feel free to let me know what kinds of things you want to learn about game development!
@nyangolog
@nyangolog 4 года назад
thank you
@TurboMakesGames
@TurboMakesGames 4 года назад
You're welcome, glad it helped!
Далее
How to make a HEALTH BAR in Unity!
21:06
Просмотров 1,1 млн
220 volts ⚡️
00:16
Просмотров 487 тыс.
What does a Game Engine actually do?
16:45
Просмотров 141 тыс.
Configurable TIMER / STOPWATCH Unity Tutorial
11:08
Просмотров 34 тыс.
Game Over Screen Unity Tutorial
14:35
Просмотров 40 тыс.
How I Started Making Games with No Experience
9:49
Просмотров 1,9 млн
Unity Loading Screen | Beginner Tutorial (2022)
8:29
THIRD PERSON MOVEMENT in Unity
21:05
Просмотров 1,4 млн