Different movement for different resolutions

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By MrHells

So, I made a plataformer setup, and when it jumps it gets like 200 unit upwards, but if I resize or play the game on a wider monitor, the Y movement suffer a distortion, so, on higher heights it gets higher in comparison to the other objects on the world.

I cant send a video here haha, so here is an ilustration
higher res


lower res


Keep in mind that the player jump not higher on my screen, but on the world, thats the issue

What are your stretch settings? Project > Project Settings > Display > Window > Stretch > Mode/Aspect?

I would imagine 2D and keep would get you what you want for free.

timothybrentwood | 2021-05-13 13:17

The problem actually was fps, as I was using _process(delta) to update my physics, with lower resolutions the game was running with more fps, so more movement… Just switching to _physics_process(delta) solved my problem

MrHells | 2021-05-14 23:42