Replies: 2 comments 8 replies
-
looks like I need to change the filtering mode of the texture to linear, but I don't know how to do it. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So I decided to move some sprites on screen and quickly noticed that their movement is not smooth.
It seems like sprite coordinates are getting round up (or down) to whole (1, 2, 3...) values while being rendered despite their transform is represented as real floating point values (1.0, 1.1, 1.2, 1.3...)
Reproduction is simple: take a sprite and move it with the speed of 1 pixel per second in any direction.
here is the code:
console output as expected:
but sprite "jumps" 1 pixel in 1 second instead of smooth movement. **how to fix this? **
I expect that this will be useful for others as well.
Beta Was this translation helpful? Give feedback.
All reactions