0 votes

I have a 2D platformer game I have been working on for a while. I just got a new desktop computer, and when I ran the game (both as the exported game and through Godot) on the new computer my Player Character didn't jump as high as it does on every other computer I've tried it on. Does anyone know why this might be happening? The only similar issues I could find were from like 2016 and didn't seem to apply any more. Thanks!

Godot version 3.4.4
in Engine by (14 points)

It sounds like you are not incorporating delta when calculating your player's movement. Read more about delta time here: http://kidscancode.org/godot_recipes/4.x/basics/understanding_delta/

1 Answer

0 votes

The problem is computers differ in performance. Thus one computer will have higher or lower fps which you need to account for to have consistent movement in all devices that will run your game. This is simple, you just need to multiply your velocities by delta. If you are using move_and_slide to jump, then you may have a different problem since move_and_slide already uses delta time internally.

by (2,017 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 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.