View Single Post
  #8  
Old 02-17-2012, 09:04 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by ffcmike View Post
While setshape parameters are in pixels, npc.width and .height are actually in tiles. So Emera had this part right, maybe with the exception of checking player.x and player.y, those being the top left of the player rather than the center - player.x + 1.5 and player.y + 2.
I know it usually does this, but he had set width and height to 32 manually in his first code snippet. Not even sure how the NPC reacts to that or if that's even possible though.
Reply With Quote