godotengine / godotengine/godot-docs
Camera2D avoid Jitter in pixel perfect games should be documented
- Dominant language
- reStructuredText
- Stars
- 5.7k
- Forks
- 3.8k
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 25
Description
I have found many opened issues in godot engine about Camera2D jitters in pixel perfect games when enabling smoothing, i also have came across this issue 2 years ago and posted it on twitter saying that godot is not good for 2d pixel games!
ways to fix this issue:
1- enable snapping options in project settings `rendering/2d/snap/snap_2d_transforms_to_pixel` later enables `rendering/2d/snap/snap_2d_vertices_to_pixel` if the first option doesn't solve the issue.
2- set a small drag margin in Camera2D to avoid jitter, it happens only when the Camera2d is about to reach it's desired location, for example moving from Vector2(0, 0) to Vector2(1, 0) with smoothing enabled will result in a jitter because the camera's x position will be a float between 0 and 1 while having a small drag margin will make you avoid this issue.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.