If I want the
exact center, and seriously, the exact one, I just do the following:
PHP Code:
temp.cx = player.x + 1.5 - 1 / 32;
temp.cy = player.y + 2 - 1 / 32;
Well, thats the center of the part normally blocking, the 32*32 pixels at the bottom of the body Dusty pointed out. Why 1 / 32? Thats half a pixel ;P Very nice to remember I guess :]