I didn't expect my problem to be solved by you again, thank you very much
@RehopeGames Жыл бұрын
Thanks ...🙏
@r.f886 Жыл бұрын
Clean and straight to point, thank you very much 👍
@RehopeGames Жыл бұрын
Thanks a lot 🙏
@bluaurax Жыл бұрын
Amazing tutorial dude! Works so perfectly
@RehopeGames Жыл бұрын
Thank you so much 🙏
@ELISABETTAIANNONE11 ай бұрын
Dude this tutorial is amazing, thank you!
@RehopeGames11 ай бұрын
Thanks a lot 😊
@citrinebby Жыл бұрын
you are a lifesaver thank you!!!
@RehopeGames Жыл бұрын
Thanks for your kind feedback 🙏 I'm glad hear that.
@dogebella Жыл бұрын
good and clear explained. Great work 👍
@RehopeGames Жыл бұрын
Thank you so much 😊
@詩妍-e2w Жыл бұрын
Great tutorial, Thank you so much
@RehopeGames Жыл бұрын
You're very welcome! I'm glad you found it helpful. 😊 Thanks 🙏
@totojatiwijayanto4501 Жыл бұрын
Great and useful stuff. Hi Murat, please make a video that teaches how to create a dialog box. Thanks, hope you doing well
@RehopeGames Жыл бұрын
Hi 🖐 I noted your request bro. I'm great , Thanks for your interest 😊
@abhinavkhatana Жыл бұрын
Thank you for this it will help me to make a speed run game
@RehopeGames Жыл бұрын
I'm glad to hear that and thanks for your feedback 😊
@abhinavkhatana Жыл бұрын
@@RehopeGames you know that i am watching you since your 2nd video
@RehopeGames Жыл бұрын
@@abhinavkhatana Thank you so so so much bro 🙏🙏🙏🙏 Is there a special video you want about unity?
@abhinavkhatana Жыл бұрын
@@RehopeGames yes, glad if you will make In both 2d and 3d gun shooting tutorials With variable shooting speed and variable accuracy I've watched others video but I literally do not understand they just say to copy and paste the code
@RehopeGames Жыл бұрын
Did you want to change the bullet speed or the camera shooting speed ( like slow motion) ?
@SethFX Жыл бұрын
Hi, new subscriber, please don’t stop making vídeos
@RehopeGames Жыл бұрын
Thanks and welcome 🖐
@何文煜-z6i10 ай бұрын
Usefulllllllll😍🤩😍🤩and easy
@RehopeGames10 ай бұрын
Thanks a lot 😊
@Tunderpal Жыл бұрын
Is it ok if you could put a copy of your code in the descriptions of your videos? They're all great but it makes it much easier to cross refference.
@SuperMillwall Жыл бұрын
How would you accelerate the time? For example if you’re playing a football (soccer) game they play 45 mins each half.. But obviously you can’t set the time at 45 minutes real time.. You need it to be 5 mins real time but it needs to speed up in game. Secondly, for a football game, at 45 minutes how do you make the timer stop the game and activate a “Half Time Menu” Thanks for your help. Your videos are so informative and easy to follow.
@RehopeGames Жыл бұрын
You can use Time.timeScale to do that. Look at the unity document for detail. docs.unity3d.com/ScriptReference/Time-timeScale.html I wish success in your project 🙏
@biged606 Жыл бұрын
Lovely!❤👍🏻😊
@breakdancerQ9 ай бұрын
Damn good video, got it easy
@antro_phagusАй бұрын
worked perfectly, thank you!!
@PixelNoob019 ай бұрын
hi, can you pls tell me how to add milliseconds, i cant find it in your link. Would be so happy, tnx.
@AMINEI-wl9rk8 ай бұрын
using System.Collections; using System.Collections.Generic; using TMPro; using UnityEngine; public class timescript : MonoBehaviour { [SerializeField] TextMeshProUGUI timerText; float elapsedTime; void Update() { elapsedTime += Time.deltaTime; int minutes = Mathf.FloorToInt(elapsedTime / 60); int seconds = Mathf.FloorToInt(elapsedTime % 60); timerText.text = string.Format("{0:00}:{1:00", minutes, seconds); } }
@PixelNoob018 ай бұрын
Do u know how to add milliseconds?
@AMINEI-wl9rk3 ай бұрын
@@PixelNoob01 using System.Collections; using System.Collections.Generic; using TMPro; using UnityEngine; public class timescript : MonoBehaviour { [SerializeField] TextMeshProUGUI timerText; float elapsedTime; void Update() { elapsedTime += Time.deltaTime; int minutes = Mathf.FloorToInt(elapsedTime / 60); int seconds = Mathf.FloorToInt(elapsedTime % 60); timerText.text = string.Format("{0:00}:{1:00", minutes, seconds); } }
@Rafit_Hasan2 ай бұрын
wrong timmer donot use this anyone
@JFNIReverse10 ай бұрын
Too fast instruction. For some reason my Unity report a fault of NullReferenceExeception: Object reference not set to an instance of an object. (Also why did you delete the Void Start when you writing the script?)
@marievoss9 ай бұрын
Maybe the name of your object has a typo in it.
@RandomDude000018 ай бұрын
doesnt really matter when you delete Start() its just annoying that its there but blank
@JasonDinh695 ай бұрын
me too, did you figure out how to fix. Reply fast my game needs this problem fixed
@storm_pegasus9659 Жыл бұрын
Your video is extraordinary and awesome.❤ Can you make videos about game server like Lootlocker or Playfab or Firebase with unity attached? Sorry for my English mistakes. 👍
@RehopeGames Жыл бұрын
Hi, First thanks for your nice feedback 🙏 I plan publish videos about game server in the future. Actually I don't know Enough English too 😊
@JasonDinh695 ай бұрын
I set up the code for a countdown timer but It keeps giving a NullReferenceExeception: Object reference not set to an instance of an object
@aryankumarrout970724 күн бұрын
That is because you haven't referenced it in the inspector. The code is fine.
@Ogamer3206 ай бұрын
thanks really great tutorial
@spacegolbfish5 ай бұрын
I've seen several people use Searilized feild's but for some reason they never seem to work and i tend to have no clue why you'd use it. Does anyone here know?
@brianparnada50779 ай бұрын
Thank you❤ I have a request please if possible making a tutorial on how to add extra time in a timer countdown by 2d/3d object is trigger/collide 🥺
@erikfelde13998 ай бұрын
Thank you ❤
@slob50415 ай бұрын
I like the timer text
@itierney Жыл бұрын
I'm trying to make a timer that continues in the background on iOS, even if the app looses focus. What solution would you recommend?
@RehopeGames Жыл бұрын
If this for a game, you can use Date methods for this. Date methods + Json file ( for store)
@ahmedsachwani2868 Жыл бұрын
So I am making a project where I am using a panel in 3 different scenes using singleton, now I need to show the timer on the panel when the game ends. Problem is the timer starts AFTER the game ends.
@RehopeGames Жыл бұрын
Hello Sorry for the late reply. I hope you solve it. If you have a script that is not a singleton and exists in every scene, you can access the Timer from that script and start the timer from within the Start function
@ahmedsachwani2868 Жыл бұрын
@@RehopeGames yeah, my partner who’s making project with me helped solve it. Also instead of using string format, we used TimeSpan
@RehopeGames Жыл бұрын
@@ahmedsachwani2868 👍
@miaalvarez62786 ай бұрын
how can i add a button to it to start and stop time
@Pokemon4ik21789 ай бұрын
Hi Rehope games! Can you make video "how to make a timer before starting a game in Unity" PLEEES
@FlashPro_N7 ай бұрын
Thanks!
@fustream8526 Жыл бұрын
Hi, can you make a tutorial on how to show silhouettes when hidden? Thank you very much.
@RehopeGames Жыл бұрын
Hello ,You can, too 😊 First, create a silhouette image of the character, then change the character lmage to you've created lmage when the character hidden.
@Rccustomoffroad Жыл бұрын
Hey, how i put the lose game when the time go to0?
@RehopeGames Жыл бұрын
Hello , I showed this in the video
@BlazeZ__9 ай бұрын
Hmm, a bit confused delta time is already in seconds no? Why converting to seconds then?
@baikaewnutkamol98610 ай бұрын
How can I keep the timer running in every scene?
@adamktaylor5 ай бұрын
Hopefully you've figured it out already, but I'm thinking maybe a DontDestroyonLoad attached to the timer itself and the text/GUI associated with it?
@minikeanu75359 ай бұрын
can you make a tutorial on how i can save the time?
@mapbot4264 Жыл бұрын
how to make the timer reset when gameover/restarting please reply
@RehopeGames Жыл бұрын
remainingTime = 0; 😊
@mapbot4264 Жыл бұрын
@@RehopeGames where do i add that to the code??
@Galaxy_World8 ай бұрын
@@mapbot4264add it to the area where your code tells the game your player died
@Tritonspeedrun Жыл бұрын
How do I make the timer stop on a certain scene
@RehopeGames Жыл бұрын
You can stop the time using time scale. Time.timeScale = 0;
@allawigamer7449 Жыл бұрын
please can you make video about how to add settings menu for graphic
@RehopeGames Жыл бұрын
Graphic quality etc. ?
@allawigamer7449 Жыл бұрын
@@RehopeGames yes please
@glimpsygames2734 Жыл бұрын
Holding and pushing a box or a circle tutorial
@RehopeGames Жыл бұрын
Maybe in the next make a game series 👍
@glimpsygames2734 Жыл бұрын
@@RehopeGames I also post some ideas in my channel
@glimpsygames2734 Жыл бұрын
@@RehopeGames Like swinging and climbing on ropes
@CapZapZap10 ай бұрын
For the countdown ill prefer a couratine method than what you wrote
@VerityD23 ай бұрын
the text is invisble. all i see is a blue square with a t in it
@RandomDude000018 ай бұрын
hi how can I add hour?
@S3V7N_Official8 ай бұрын
I will remember you in the future
@ysfgaming861 Жыл бұрын
yeni video ne zmn gelir sabırsızlıkla bekliyorum
@RehopeGames Жыл бұрын
Pazartesi 😉
@ysfgaming861 Жыл бұрын
@@RehopeGames abi online nasıl yapılır anlatabilir misin
@putrapandi41652 ай бұрын
❤
@rike6771 Жыл бұрын
How do you pause it?
@RehopeGames Жыл бұрын
You can use -Time.timeScale- to do that.
@BaldiModsAndroidStudio28 ай бұрын
why did my second move so fast?
@regard25038 ай бұрын
you can fix that like this void Update() { if (remainingTime > 0) { remainingTime -= Time.deltaTime; int minutes = Mathf.FloorToInt(remainingTime / 60); int seconds = Mathf.FloorToInt(remainingTime % 60); timerText.text = string.Format("{0:00}:{1:00}", minutes, seconds); } else if (remainingTime < 0) { timerText.text = "00:00"; remainingTime = 0; } } hope it's help you