Quote:
Originally Posted by Crow
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 :]
|
or
PHP Code:
temp.cx = player.x + 23.5/16;
temp.cy = player.y + 31.5/16;
which is Loriels' method that he used in his Movement system ;o
But his movement system is compatible with gs1 so I've rewritten his movement system to work with gs2, and to use less cpu (gs1 didn't support temp. variables

) and I added running to it ;o