- Joined
- Nov 26, 2015
- Messages
- 106
- Reaction score
- 20
- First Language
- Italian
Hi everyone,
I'm having an aesthetical issue with the way charachter sprite are drawn in relation to the tileset map. I have the player character and camera movement that change the _displayX and _displayY of $gameMap with floating point numbers. The thing is apparently the map sprite and the character sprites approximate their position based on the display coordinates with different rules (maybe one use round() while the other floor()) or at least that's my guess, and this causes the character sprites to "wobble" in relation to the map while the camera is moving. Obviusly they move for only one pixel but it's enough to be noticed and is annoying to the eye.
Anyone has an idea how to solve this problem?
Thanks!
I'm having an aesthetical issue with the way charachter sprite are drawn in relation to the tileset map. I have the player character and camera movement that change the _displayX and _displayY of $gameMap with floating point numbers. The thing is apparently the map sprite and the character sprites approximate their position based on the display coordinates with different rules (maybe one use round() while the other floor()) or at least that's my guess, and this causes the character sprites to "wobble" in relation to the map while the camera is moving. Obviusly they move for only one pixel but it's enough to be noticed and is annoying to the eye.
Anyone has an idea how to solve this problem?
Thanks!
Last edited by a moderator:

