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 Жыл бұрын
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 Жыл бұрын
Yes I don't see why it wouldn't work!
@levskulikovs7 ай бұрын
Movement on high speed can be bagy?
@Sean-gx1sf Жыл бұрын
This was incredibly useful; thank you
@mrelipteach Жыл бұрын
Glad it was helpful!
@ariton2990 Жыл бұрын
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?
@lucazfc2 жыл бұрын
Maybe it could be possible to use the virtual RigidBody2D::_integrate_forces() function to affect the calculations
@mrelipteach2 жыл бұрын
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 Жыл бұрын
Bros coding in the comments lol
@ChristianGossPlaysGames9 ай бұрын
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
@mrelipteach9 ай бұрын
Use the second technique I'm showing where you slow things individually by playing with a scale factor on delta.
@mikayil.aliyev4 ай бұрын
Thorough and clear explanation! Thank you very much!
@ranpergames Жыл бұрын
I am agreeing to all these comments here (legendary tutorial)
@inspiredink45152 ай бұрын
unless im missing something. this does not work on Godot 4
@mrelipteach2 ай бұрын
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
@inspiredink45152 ай бұрын
@@mrelipteach ohh forgot to write that down. Way 2 for the timer. Timescale definitely works