This is an automated archive made by the Lemmit Bot.

The original was posted on /r/godot by /u/theSilentSmile_ on 2024-10-03 09:00:20+00:00.


Edit: hey guys thanks for the information you included, btw because of “it bothers me” in the title some people thought I was angry, this wasn’t a rant post, I simply wanted to point this out so others won’t make the same mistake.

Hi, with the games I’ve created so far (they were 3D), my player movement and enemy AI multiplies the speed by delta, something you think you should do right? Apparently no because the move_and_slide() function already does that for you and if you multiply by delta again it can cause the speed of movement to be different on different machines. I watched as my enemy was slower in other people’s gameplay.

This kind of makes sense since the default character body code template that the engine gives you only uses delta for gravity and not for walk and jump.

It’s probably in the documentation somewhere but I couldn’t find it and I think this is something important so I wanted to share this and others don’t repeat the same mistake with their games.