Quote:
Originally Posted by Polo
For movement systems, I have always used...
NPC Code:
temp.cx = player.x + 1.5;
temp.cy = player.y + 2;
Which give the center of the players base (thats the area which blocks against walls). Add/subtract 1 from those positions to find the respective edges of this region. 
|
I'm just getting the center of the player to calculate hit detection using the center of the attacker and each possible person to hit.