Skip to content

Instantly share code, notes, and snippets.

@BenMakesGames
Created February 10, 2014 20:28
Show Gist options
  • Save BenMakesGames/8923559 to your computer and use it in GitHub Desktop.
Save BenMakesGames/8923559 to your computer and use it in GitHub Desktop.
=begin
positions events with "Walk Animation" checked 8 pixels higher. for events that
represent NPCs, this places their feet closer to the center of the tile they're
standing in, rather than the bottom. this looks better on most RTP tilesets.
considerations:
* RPG Maker has "Walk Animation" on by default for ALL events. when using this
script, you should uncheck "Walk Animation" for events except those
representing NPCs. if you're adding this to an existing project, updating all
of your existing events could be a LOT of work.
* if you use tall character sprites (instead of the built-in chibi style), you
may encounter weird overlapping issues, since the characters will reach two
tiles above them, instead of just one. to avoid this, keep character sprites 54
pixels or shorter.
=end
class Game_CharacterBase
def screen_y
$game_map.adjust_y(@real_y) * 32 + 32 - shift_y - jump_height - (@walk_anime ? 8 : 0)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment