Quote Originally Posted by Traveler
Judging by your demo, I asume you're making a platform game. If this really is the case, then I'm uncertain as to why you want to have your sprites aligned with the tiles every time they are moving.
It is in any case not what normally happens in platform games, and might be confusing to the player or perhaps even annoying, because the sprite will continue to move until it is aligned with a tile. Even when the user has stopped pressing the buttons.

I could be wrong here, but i think you need to look for a different solution.
Actually it's not a platform game and it's very important that the player doesn't stop between tiles.

But the thing is, even if it was a platform game, what would happen when the player moves along and hits a wall? He has to come to a rest exactly on a tile then (so he's up exactly against the wall) doesn't he?, so surely the same problem applies? Err.r.......






The whole system depends on that.