Hello everyone!I'm working on 2D tile based game (
C++ &
DX9). I want character to move smoothly from tile to tile, but I have problems here.
On first check, everything looks smooth but when you look closer, you can see that it's "spiky" movement. It looks like it jumps for few pixels even if it's only one. I'm wondering if there is a way to make everything smoother.
ALGORITHM:
Everytime you move, player moves for 32 pixels (1pixel / 6ms)
In the same time, I have MapXOffSet that starts with 0 and resets at 32
I render map like this:
RENDER IN LOOP:
map[i][j].Tile, 32*i - MapXOffSet, 32*j - MapYOffSet;Please, download my project and see it by yourself (FullScreen and Windowed exe files)
-----------------------
Download Project---------------------