Quote from: Khris on Sun 13/09/2009 23:04:15
Enough theory for now, but before I can help you with code: isn't the character supposed to stand on multiples of 16 + 8, as in 8, 24, 40, 56, ... so he's centered on the tile?
well, yes, but when learning how to code new things, I generally try to get something functional first, and then tweak it later.
So to change your code to return true for the half tile offset you could just change it to
if (player.x % 16 == 8) {
right?
unless Im wrong there, i'll probably be able to get a fair few of the major functions working tonight.
scar