0 votes

Hello, I've been having a problem with Engine.settimescale(val).

When I use it, after I reset it back to 1.0, the Player Node (a KinematicBody2D) starts jittering and lagging on movement. I tried doing this in the 3D engine and had no problems, but in 2D this keeps happening. I tried changing the PhysicsEngine, but no changes, and I tried switching from moveandslide to moveandcollide. I also tried moveandslidewithsnap, but again, same effect.

If I leave the settimescale to the lower value (I'm using 0.5), the character isn't lagging, but once it resets, it starts happening.
The frames remain a stable 60, and I've checked that time_scale resets back to 1.0.

What is causing this problem? Anyone had something similar?

Godot version 3.3
in Engine by (12 points)

PS: This question was cross-posted on https://godotforums.org/discussion/26280/set-time-scale-jitters-kinematicbody2d.

Try installing, enabling and configuring lawnjelly's smoothing-addon to benefit from physics interpolation.

Please log in or register to answer this question.

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 Frequently asked questions and 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 [email protected] with your username.