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

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

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

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

    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.

  • @Sean-gx1sf
    @Sean-gx1sf 2 года назад +6

    This was incredibly useful; thank you

  • @mikayil.aliyev
    @mikayil.aliyev 8 месяцев назад

    Thorough and clear explanation! Thank you very much!

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

    This was great, thanks.

  • @darkstrife1
    @darkstrife1 2 года назад

    You're a legend bro

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

    • @Коробка15
      @Коробка15 11 месяцев назад

      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?

  • @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 2 года назад

      Bros coding in the comments lol

  • @CGTNC
    @CGTNC Год назад +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  Год назад

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

  • @jkouss
    @jkouss 2 года назад

    Thank you

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

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

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

    Does it work in 3D

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

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

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

      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 5 месяцев назад

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

  • @shadownight2248
    @shadownight2248 2 года назад

    Thank you