Godot 4 Timers Explained

Поделиться
HTML-код
  • Опубликовано: 28 дек 2024

Комментарии • 39

  • @MarcDanielWagner
    @MarcDanielWagner Год назад +16

    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.

    • @brettmakesgames
      @brettmakesgames  Год назад +1

      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.

    • @MarcDanielWagner
      @MarcDanielWagner Год назад +1

      @@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 👊😎

  • @kbzahtoh26stars55
    @kbzahtoh26stars55 10 месяцев назад +1

    Best explanation!!! Thank you!

  • @unrealingenium-iz7ds
    @unrealingenium-iz7ds Год назад +2

    Great! You did a more in-depth look at Timers than most other intro videos and you explained everything clearly. Very helpful. :)

    • @brettmakesgames
      @brettmakesgames  Год назад +1

      So glad to hear it was helpful, thanks for watching!

  • @scarpheel
    @scarpheel Год назад +1

    Your voice fit perfectly with the subject you teach

  • @NachitenRemix
    @NachitenRemix Год назад

    Love your way of explaining with direct and practical examples, thank you very much!!

  • @Cannerd2367
    @Cannerd2367 Год назад

    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.

  • @HadesiorOfficial
    @HadesiorOfficial 5 месяцев назад

    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.

  • @aspect3884
    @aspect3884 Год назад +1

    Best explanation ever, really saved me on this one! You've definitely earned a sub, and its me!

    • @brettmakesgames
      @brettmakesgames  Год назад +1

      So glad to hear it, thanks for the kind words and support!

  • @superj1e2z6
    @superj1e2z6 Год назад +5

    you can use string formatting to round like %.00f

    • @brettmakesgames
      @brettmakesgames  Год назад

      Thank you! I gotta dig in and learn more of those string substitutions/formatting.

  • @deerdev6511
    @deerdev6511 11 месяцев назад

    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!

  • @AprendaGodot
    @AprendaGodot Год назад +1

    Great explanation bro, its helps me a lot 😁

  • @dalabastudios
    @dalabastudios 9 месяцев назад

    how do you make the timer count up

  • @bclikesyou
    @bclikesyou Год назад

    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 ;)

  • @MohamedElHanoun
    @MohamedElHanoun Год назад

    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 ??

  • @Artoks-b2e
    @Artoks-b2e 11 месяцев назад

    can i start timer with signals?
    and how, if it possible?

  • @635574
    @635574 2 месяца назад

    I already saw somewhere
    "%0.2f" % damage
    when trying to round and and stringify the value, buy IDK why that works for 2 decimals.

  •  27 дней назад

    You saved my evening. I can't use the start in scripting 😓 but my cells generator has a new brick. Thanks

  • @UnofficialTranslator
    @UnofficialTranslator 10 месяцев назад +1

    Thank you so much

  • @furroy
    @furroy Год назад +1

    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

    • @brettmakesgames
      @brettmakesgames  Год назад

      Thanks for this tip, will make use of it in future vids!

  • @midnightstories5695
    @midnightstories5695 Год назад +1

    How would you make timer as a score. Thanks for the explimation !

    • @brettmakesgames
      @brettmakesgames  Год назад

      It depends on how you want to score your game. What kind of scoring do you want to implement?

    • @midnightstories5695
      @midnightstories5695 Год назад

      @@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 !

    • @brettchalupa
      @brettchalupa Год назад +1

      @@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.

    • @midnightstories5695
      @midnightstories5695 Год назад +1

      @@brettchalupa I think I actually understand what you are saying, Which is a bit scary Thanks !

  • @kingshahzad78
    @kingshahzad78 4 месяца назад

    Thanks Dear

  • @sansthememeisacoolguy
    @sansthememeisacoolguy Год назад +3

    Dude why cant we just have a "Wait(3)" function or something why does gdscript have to be like this

    • @madeyslime
      @madeyslime 10 месяцев назад

      you can do this
      await create_timer().tween_interval(3).finished

    • @sansthememeisacoolguy
      @sansthememeisacoolguy 10 месяцев назад

      @@madeyslime 2 months too late

    • @madeyslime
      @madeyslime 10 месяцев назад

      @@sansthememeisacoolguy I'm sorry 😭

  • @chargames7365
    @chargames7365 10 дней назад

    I LOVE YOU

  • @ionthedev
    @ionthedev 11 месяцев назад

    Mascot name is gobrot
    Pronounced Guh-Bro
    Yes I am spreading misinformation on the internet on a Saturday after noon