+1 vote

Hi, for a skill effect (slow motion) im using Engine.time_scele = 0.5, and its okay.
but im checking skill cool down with timer. because of time_scele = 0.5, timer go down slowly. can i exempt the timer from time_scele ?

Godot version 3.2.2 stable
in Engine by (94 points)

1 Answer

+1 vote

Engine.time_scale will affect everything and you can't make exceptions. You could take it into account with your delta in _physics_process and _process.

If you want more control you could define your own time scale, being 1.0 by default and scaled however you want when you need to slow or speed up time. You then use this value with deltato control at which speed things should go. This allows you to only slow the process function of a character for example, without affecting timers or anything else.

by (619 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.