Quote:
Originally Posted by ffcmike
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.