ID:1180283
 
(See the best response by DarkCampainger.)
Problem description:
Hello,

My issues is that I am using a 32x32 map. However the base_icon i am using for my characters is 64x64.

I want the bigger base icon so I can get more detail in the character however I dont want to switch the map to 64x64 because it will mess up HUD things I have set up.

The issue is really that the 64x64 base icon is sorta floating the middle of 2 tiles rather then in the center of a single icon. Is there anyway i can shift the icon itself over like 16 pixels to even it out so that it looks like you are in the correct spot.

tldr: Can i shift the base icon over a few pixels so it looks like its standing in the correct tile.





Best response
You want pixel_x. Setting it to -16 for your player should give you the effect you want.
Wonderful response, Thank you very much, extremely helpful
I think the general formula for centering an icon is...
pixel_x = (tile_width - icon_width) / 2


In your case, as DarkCampainger said,
pixel_x = (32 - 64) / 2
= -32 / 2
= -16


For a 48x48 icon, it would be 16 - 24 = -8. I think it works for everything.