So glad to hear that feedback. I know there are lots of course-like videos out there, which I intend to do, but I also find it helpful to have videos focused on single concepts that can be applied in all sorts of ways.
@@brettmakesgames Exactly... Because there is so many things to learn and know about... Having short, concise and focused attention on a specific is often quite helpful. Hope your channel gets more attention 👊😎
I started learning godot and counting time was the wall i hit, i looked for scripts similar to what i wanted but timers there were in code and were more complex, i coudnt also find any explanation in my native language(not english) i stopped learning for like half a month but it turned out that i was idiot and there was a timer node that wasn't so complex. Thanks for this video, it set me back on track.
I know im really late but thers a floor() function which rounds a number down towards negative infinity. So 2.99 seconds would be displayed as 2 seconds. I personally liked it better for timers but its really just a different way of displaying things. Thats kind of what I love about coding, there are so many ways to approach a problem. Thanks for the tutorial and have a great day!
For a newbie, it was super helpful to see you troubleshoot how to find "round". I'm still in that early stage of "hm how do I do x", so it's helpful to see yeah just look at the docs ;)
How to set the timer to start when U press A button then After maybe 0.6s And Timer out For example Add A boost_speed To the player When U press the space button After 0,6s stops ??
@@brettmakesgames Say the quickest time to complete a task like a sprite going through a winding path and triggering something that stops the timer. Thanks anyway !
@@midnightstories5695 Oh yeah! So what you could do there is have a variable that keeps track of time_elapsed and in your _process(delta) callback function, add delta to your time_elapsed variable. And when the sprite gets to the end, check to see elapsed_time and score accordingly. So not quite a timer but instead a stopwatch you code yourself. Timers are great for counting down, but storing elapsed time in a variable is great for counting up time.
You said at the end, "I hope that helps" ...
Me: "Yes, it totally does help."
Love the practical example and run through. Learned something new.
So glad to hear that feedback. I know there are lots of course-like videos out there, which I intend to do, but I also find it helpful to have videos focused on single concepts that can be applied in all sorts of ways.
@@brettmakesgames Exactly... Because there is so many things to learn and know about... Having short, concise and focused attention on a specific is often quite helpful. Hope your channel gets more attention 👊😎
Best explanation!!! Thank you!
Great! You did a more in-depth look at Timers than most other intro videos and you explained everything clearly. Very helpful. :)
So glad to hear it was helpful, thanks for watching!
Your voice fit perfectly with the subject you teach
Love your way of explaining with direct and practical examples, thank you very much!!
Thank you for making this tutorial. I’m new to Godoy and want to know how to make a timer for my game without getting stuck in tutorial hell.
I started learning godot and counting time was the wall i hit, i looked for scripts similar to what i wanted but timers there were in code and were more complex, i coudnt also find any explanation in my native language(not english) i stopped learning for like half a month but it turned out that i was idiot and there was a timer node that wasn't so complex. Thanks for this video, it set me back on track.
Best explanation ever, really saved me on this one! You've definitely earned a sub, and its me!
So glad to hear it, thanks for the kind words and support!
you can use string formatting to round like %.00f
Thank you! I gotta dig in and learn more of those string substitutions/formatting.
I know im really late but thers a floor() function which rounds a number down towards negative infinity. So 2.99 seconds would be displayed as 2 seconds. I personally liked it better for timers but its really just a different way of displaying things. Thats kind of what I love about coding, there are so many ways to approach a problem. Thanks for the tutorial and have a great day!
Great explanation bro, its helps me a lot 😁
Glad to hear it, thanks Lucas!
how do you make the timer count up
For a newbie, it was super helpful to see you troubleshoot how to find "round". I'm still in that early stage of "hm how do I do x", so it's helpful to see yeah just look at the docs ;)
How to set the timer to start when U press A button then After maybe 0.6s And Timer out For example Add A boost_speed To the player When U press the space button After 0,6s stops ??
can i start timer with signals?
and how, if it possible?
I already saw somewhere
"%0.2f" % damage
when trying to round and and stringify the value, buy IDK why that works for 2 decimals.
You saved my evening. I can't use the start in scripting 😓 but my cells generator has a new brick. Thanks
Thank you so much
when making a new script you can pick empty as a template (or another template) then you don't have to delete the default stuff
Thanks for this tip, will make use of it in future vids!
How would you make timer as a score. Thanks for the explimation !
It depends on how you want to score your game. What kind of scoring do you want to implement?
@@brettmakesgames Say the quickest time to complete a task like a sprite going through a winding path and triggering something that stops the timer. Thanks anyway !
@@midnightstories5695 Oh yeah! So what you could do there is have a variable that keeps track of time_elapsed and in your _process(delta) callback function, add delta to your time_elapsed variable. And when the sprite gets to the end, check to see elapsed_time and score accordingly. So not quite a timer but instead a stopwatch you code yourself. Timers are great for counting down, but storing elapsed time in a variable is great for counting up time.
@@brettchalupa I think I actually understand what you are saying, Which is a bit scary Thanks !
Thanks Dear
Dude why cant we just have a "Wait(3)" function or something why does gdscript have to be like this
you can do this
await create_timer().tween_interval(3).finished
@@madeyslime 2 months too late
@@sansthememeisacoolguy I'm sorry 😭
I LOVE YOU
Mascot name is gobrot
Pronounced Guh-Bro
Yes I am spreading misinformation on the internet on a Saturday after noon