How To Make A Countdown Timer In Unity - Beginner Tutorial

preview_player
Показать описание
This video will quickly show you how to make a countdown timer in unity. This works for unity 2D and unity 3D and is very useful when making games.

About Me:
Hey, I'm Jumbo Jump, an indie game developer who uses the Unity Engine. I make videos of the games I make for fun. And hopefully, you guys enjoy watching them.
Рекомендации по теме
Комментарии
Автор

IMPORTANT: in the code on line 19 you need to move the - to behind the =

djemtheman
Автор

To anyone having a problem with the text stuck at 0. On line 22 change the > to a <. That should fix it.

mawfix
Автор

on line 19, it needs to be "currentTime -=" instead of "currentTime = -"

perssontm
Автор

Thanks! I needed this to make my platformer more suspenseful!

zGD
Автор

No Indian accent, no unnecessarily long explanations, you definitely gain my respect and like obviously.

YerliGameDev
Автор

Love the format. I know it might not be great to total beginners, but to somewhat beginners like me some straight to the point video/code like this is awesome. Thanks!

william.strebe
Автор

Thank you so much for making this tutorial! This is exactly what I'm looking for~

elainechen
Автор

Hey there thanks for this can you make a reward as implementation that ads more time when finished?

ToluSculpts
Автор

hi, please can you tell me how to make a countdown from now (this hour) till midnight. From a hour to a another hour. i cant find that in internet.

mohamedkenani
Автор

idk if you will respond, but how do i make it so that the timer disappears after it hit zero? ( im making a count down lol)

ZeroChronicles
Автор

Help when i start the game it just shows 0

woilah
Автор

if i want to add the timer on a ontrigger function when u pick up the timer how do go about with the code currently im doing this but its wrong.

private void OnTriggerEnter(Collider other)
{
if
{

powerupsound.Play();
while (timestart > 0)
{
timestart -= 1 * Time.deltaTime;
timertext.text = timestart.ToString();
}
if (timestart > 0)
{
powerup = true;

}
else
powerup = false;

}

flamestrike