CHARACTER FEET RECENTER

RPG Maker VX Ace

Places character's feet closer to the center of the tiles they're walking on, instead of flush with the bottom.

  • bentelk
  • 02/09/2014 09:09 AM
  • 2648 views
I'm making my first game with all-original graphics, and found that the way the player is positioned within a tile is really troublesome for me: their feet are lined up with the bottoms of tiles, rather than the center of those tiles.

so I wrote this script to reposition the player - as well as any NPCs - 8 pixels higher. it does this by adjusting the Y position of any event with "Walk Animation" on.

I afterwards noticed that this improves the look of the characters with most RTP tilesets, so decided to post this simple (5 lines!) script.

it's worth noting that RPG Maker has "Walk Animation" on by default for ALL events, so when using this script, you have to remember to uncheck "Walk Animation" for events that aren't NPCs. kind of annoying. also note: if you want to add this script to an existing project, it could be a lot of work to update all of your existing events >_>

finally, if you've worked with taller-than-normal character sprites, you may be aware of bad-looking tile overlap issues that can occur when using such sprites. normally, character sprites taller than 62 pixels would cause this (the game already shows characters 4 pixels above the base, so that's why it's 60 instead of 64), but with this script, it will happen with character sprites taller than 52 pixels (this script shifts characters up 8 pixels, and 60 - 8 = 52, so there you go: math).