You NEED to use Coyote Time in Godot 4

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

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

  • @ToonNoah
    @ToonNoah 8 месяцев назад +16

    may i suggest making a tutorial about Jump Buffers too? Y'know, when you hold jump a slight bit BEFORE touching the ground. I implement it in all of my projects and, personally, i find Jump Buffers just as, if not more, useful than Coyote Timers. Jump Buffers are especially super useful for speedy games.

    • @Chaff_Games
      @Chaff_Games  8 месяцев назад +2

      Next week 🙂

    • @BillybobsPainting
      @BillybobsPainting 8 месяцев назад +2

      @@Chaff_Gamesis the Jump Buffers in your Udemy Course ?

    • @Chaff_Games
      @Chaff_Games  8 месяцев назад +2

      @user-vf6eh1fo5u yes but I’m going to cover it here anyway. I might de list that. It does not sell much at all, I do however cover the topics in far more detail and at a slower pace. But with these latest videos, you get the same fundamental information.

    • @w花b
      @w花b 8 месяцев назад +1

      But isn't jump buffer only useful if you're using the just_pressed() method? If we're constantly detecting that the player is pressing the key, it doesn't matter, the player will jump immediately once it touches the ground again. Unless I'm misunderstanding what you're referring to.

    • @Chaff_Games
      @Chaff_Games  8 месяцев назад

      @whannabi well you might use just pressed but the additional check is is_on_floor(). You don’t want your player to be able to jump if they’re not on the ground, so that’s when you add the Jump buffer timer.

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

    thank you so much, none of the other methods i tried worker, this was really helpful

  • @DanielAttaway
    @DanielAttaway 8 месяцев назад +2

    Awesome video. I am an experienced dev that is new to godot, and the pacing of the video was excellent. I'm excited to check out more of your content. 🤙🤙

  • @royalemiko9020
    @royalemiko9020 3 месяца назад

    Thanks for the tutorial I just implemented this in my game and it works nicely.

  • @hellblazer8543
    @hellblazer8543 8 месяцев назад +2

    oh great, you have this one too. haha i will try to incorporate this with state machine

    • @Chaff_Games
      @Chaff_Games  8 месяцев назад

      It’s essentially the same thing but you will want to do a check to make sure you’re still in the state that you’re signal is calling to. Assuming you have a multi node finite state machine.

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

    Great tutorial thanks for the help!

  • @scottwelfare9267
    @scottwelfare9267 7 месяцев назад +2

    If you have a double jump in your game, how can you stop the coyote time jump from eating the double jump since they are both using the logic of not being on the floor?

    • @Chaff_Games
      @Chaff_Games  7 месяцев назад

      If it was me I would be using a state machine. Or perhaps a simple counter would work? When you jump you consume a count and when you hit the ground it gets reset to the number of counts.

  • @Spas2011
    @Spas2011 8 месяцев назад +1

    Can you make video how to make the slide in fps games. The kinda slide that actives on button press. Nice videos huge help ty

  • @Dvaidiiiiiii
    @Dvaidiiiiiii 6 месяцев назад +2

    For me the timers seem a bit to complex for this simple problem, but maybe i am missing something. I am counting a variable up inside the player script with the delta time and using this as a threshold. Do you see anything bad about this approach?

    • @Chaff_Games
      @Chaff_Games  6 месяцев назад +1

      You can do whatever works best for you. If you aren’t aware, timers just count delta. So it’s exactly the same. With the benefit of start, stop, pause ect without having to implement yourself (node timers only). The only time you should not use a timer is for time tracked under .05 seconds.

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

      @@Chaff_GamesWhy not use a timer for time under 0.05 seconds?

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

      The docs say so. I am not 100% certain on the reason.

  • @Big_Theft_Auto
    @Big_Theft_Auto 7 месяцев назад +1

    It worked!❤❤❤

  • @mathislalonde353
    @mathislalonde353 3 месяца назад +2

    does it work with a double jump ?

    • @Chaff_Games
      @Chaff_Games  3 месяца назад +1

      You would probably need to shift things around. I dunno, not a fan of double jump so I rarely put it in my games.

    • @mathislalonde353
      @mathislalonde353 3 месяца назад

      @@Chaff_Gamesok thx !

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

    Great explanation, but code is bad, Just use physics_process delta as time, then you don't need any timers and etc...

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

      Deltas and timers are the same (timers just use delta under the hood). It’s just a preference, not bad code.