⏱️ 2 ways to SLOW (or speed) TIME in Godot 3

Поділитися
Вставка
  • Опубліковано 2 жов 2024

КОМЕНТАРІ • 21

  • @mikayil.aliyev
    @mikayil.aliyev 4 місяці тому

    Thorough and clear explanation! Thank you very much!

  • @alasdairsinclair916
    @alasdairsinclair916 10 місяців тому +4

    I'm making a colony builder style game, and I've been trying to figure out how to use the play speed buttons Rimworld had. This is quite useful.

  • @domeen0gt895
    @domeen0gt895 Рік тому +5

    Im curious, is it possible to first use the first method to slow everything down, then the second one in order to adjust the first one, in order to pick out an object to move normally?

    • @mrelipteach
      @mrelipteach  Рік тому +1

      Yes I don't see why it wouldn't work!

    • @levskulikovs
      @levskulikovs 7 місяців тому

      Movement on high speed can be bagy?

  • @ariton2990
    @ariton2990 Рік тому +2

    For some reason multiplying delta by 2 or even more to increase the game speed doesnt work. The game speed is still the same for me. What could be an issue?

  • @Sean-gx1sf
    @Sean-gx1sf Рік тому +5

    This was incredibly useful; thank you

  • @lucazfc
    @lucazfc 2 роки тому +3

    Maybe it could be possible to use the virtual RigidBody2D::_integrate_forces() function to affect the calculations

    • @mrelipteach
      @mrelipteach  2 роки тому +6

      Yes! I did it in my game Dashpong, but it's not ideal. Basically what I did is scale down the velocity. Unfortunately, I don't think it's possible unless you write a custom integrator which scales the delta itself in the calculations

    • @neo_ds
      @neo_ds Рік тому

      Bros coding in the comments lol

  • @ChristianGossPlaysGames
    @ChristianGossPlaysGames 9 місяців тому +1

    aww man, I really wanted to make a platformer where you get to play as a quicksilver (by evereything but you slowing) but i cannot find a way to slow evereything but the player, the enimies wont slow either

    • @mrelipteach
      @mrelipteach  9 місяців тому

      Use the second technique I'm showing where you slow things individually by playing with a scale factor on delta.

  • @ranpergames
    @ranpergames Рік тому

    I am agreeing to all these comments here (legendary tutorial)

  • @inspiredink4515
    @inspiredink4515 2 місяці тому

    unless im missing something. this does not work on Godot 4

    • @mrelipteach
      @mrelipteach  2 місяці тому

      What exactly doesn't work? Engine.time_scale is still here and the other technique should work. Maybe some functions have been renamed but the idea is the same

    • @inspiredink4515
      @inspiredink4515 2 місяці тому

      @@mrelipteach ohh forgot to write that down. Way 2 for the timer. Timescale definitely works

  • @meraklmuskulpesent8313
    @meraklmuskulpesent8313 Рік тому

    This was great, thanks.

  • @darkstrife1
    @darkstrife1 Рік тому

    You're a legend bro

  • @shadownight2248
    @shadownight2248 2 роки тому

    Thank you

  • @jkouss
    @jkouss 2 роки тому

    Thank you