How to Edit Default Character Sprite Offsets in RPG Maker MV?

Hello, RPG Maker community!

I’m trying to remove or edit a default feature of rpgmaker about character sprites being slightly off the grid in RPG Maker MV project ...as it is by default.

By default, character sprites, including the player sprite and events, are offset vertically by about 24px, if I’m not mistaken. While adding a ! to the file name of the sprite sheets can remove this offset, it also disables certain features, such as showing part of the sprite when walking through bushes or similar effects.

For my game, I want to remove this default vertical offset entirely, but I need to keep these features intact.

I’ve searched on Google and through other posts with similar issues or requests, but most of the solutions I found are about adding the ! or using plugins, which don’t address this specific need.

I remember there’s a way to edit the default offset values for character sprites by modifying a specific file in the js folder (possibly rpg_sprites.js or rpg_objects.js). This would allow me to adjust the extra pixels that might cause alignment problems.

However, I can’t find again in google or remember the exact steps or the specific part of the script that controls these offsets. I hope anyone could guide me on:

The exact file I need to edit.
The function or section of code where these offsets are defined.
How to adjust the offset values for better alignment of sprites.
I’d also appreciate any tips on alternative ways to manage sprite alignment if editing the core files isn’t recommended.

If it helps, I found a plugin by FUEL that makes something similar but I don't know what exactly it is editing about the core defaults.

// Change this value to move the character sprites.
// Larger values move the character up and vice-versa.
// This variable is initialized to the default offset.
/* var defaultOffsetY = 6; // The default offset value. */
var charOffsetY = -24;
// -- Game_CharacterBase Alias -- : Needed to ensure compatability.
var _GameCharacterBase_shiftY_ = Game_CharacterBase.prototype.shiftY;
// Redefinition of Game_CharacterBase.shiftY function.
Game_CharacterBase.prototype.shiftY = function() {
var v = _GameCharacterBase_shiftY_.call(this);
return v > 0 ? charOffsetY : 0;
};

Thank you in advance for your help!
I hope this post and answers will help other users too 🙂
... I found it.

If anyone else need it you need to:
in rpg_objects find

Game_CharacterBase.prototype.shiftY = function() {
return this.isObjectCharacter() ? 0 : 6;

you have to change that 6 to 0

I was a bit stressed out and now a bit shame about posting it and now have found it ...but if anyone know any issue about doing this it will help a lot too!
Yeah the default bush tile logic is a bit harsh. The shift value is also hard coded and is only good for average sized resources.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-edit-default-character-sprite-offsets-in-rpg-maker-mv.174547/