Draw sprites from the center?

I've noticed when you make a character sprite larger than 32x32 it will center the graphic on the X axis, but not the Y. The bottom of the image is *always* the bottom of the sprite.

Is there any way around this? Preferably, I just want the sprite to be centered on top of the 32x32 "hitbox" I can do scripting and coding and all that. I assume this will be nessicary of course.
It puts it at the bottom so it doesn't look like you have a "floating" person (actually it puts it about 4 tiles above the bottom), or so doors and things line up with the walls they're built into.

If you have a door that's 32x48, would you really want it to display 8 pixels below the wall?

How will you tell it which tiles are to be drawn lower, and which ones should be aligned?

The engine uses $ at the start of the character sheet name to know only one character is contained in the spritesheet (otherwise it divides it up into 8, for 8 characters), and ! to tell it to not move it up a few pixels (! is objects that need to align flush with the grid, like doors, chests; no ! is people, animals that are placed a little bit higher).

If you know about scripting, check out how those are drawn (I think it'll be in the Sprite_Character and Game_Character classes) and see if you can do something similar for those sprites that you want fully centered on the tile. Just be careful how you define them - $ and ! are apparently okay to have in file names, but not all of those non-text characters are.
I'm not sure if I'be explained what I'm looking for well enough or if maybe I'm just not understanding you? I've sketched out some things. For instance, if you have a sprite that's bigger than 32x32 (and has the $ in the name) it draws the sprite in comparison to the "hit box" like below (blue circle is sprite)
20190125_165016.png

Where the bottom of the sprite image is flush with the bottom of the box. But what I need is this:

20190125_165124.png

Where the image is exactly center on the box. I'm trying to do some weird things with perspective to make some of my ideas work.
If you need it for a Zelda like Swordslash for the Player,
than i only know one workaround and its using the standard Animation Editor.

The animation would make the Player invisible while it is playing and the animation contained a graphic which looked like the player but was wielding a sword. Those animations can extend on the lower end. Only problem if you are below maptiles with a star the animation is shown above them, but that is fixible with Scripts as far as i know.

Edit: For static stuff, you could use a Script to "Fix Pictures to Map" instead of the Screen.
¯\_(ツ)_/¯
Code:
class Sprite_Character
  def set_character_bitmap
    @centered = false
    self.bitmap = Cache.character(@character_name)
    sign = @character_name[/^[\!\$&]*/]
    if sign && sign.include?('$')
      @cw = bitmap.width / 3
      @ch = bitmap.height / 4
    else
      @cw = bitmap.width / 12
      @ch = bitmap.height / 8
    end
    if sign && sign.include?('&')
      @centered = true
    end
    self.ox = @cw / 2
    self.oy = @ch / (@centered ? 2 : 1)
  end

  def update_position
    move_animation(@character.screen_x - x, @character.screen_y - y)
    self.x = @character.screen_x
    self.y = @character.screen_y - (@centered ? 16 : 0)
    self.z = @character.screen_z
  end
end
Just add symbol "&" in the filename
Screenshot_421.jpg
Screenshot_420.jpg

Also too lazy for aliasing
¯\_(ツ)_/¯
Code:
class Sprite_Character
  def set_character_bitmap
    @centered = false
    self.bitmap = Cache.character(@character_name)
    sign = @character_name[/^[\!\$&]*/]
    if sign && sign.include?('$')
      @cw = bitmap.width / 3
      @ch = bitmap.height / 4
    else
      @cw = bitmap.width / 12
      @ch = bitmap.height / 8
    end
    if sign && sign.include?('&')
      @centered = true
    end
    self.ox = @cw / 2
    self.oy = @ch / (@centered ? 2 : 1)
  end

  def update_position
    move_animation(@character.screen_x - x, @character.screen_y - y)
    self.x = @character.screen_x
    self.y = @character.screen_y - (@centered ? 16 : 0)
    self.z = @character.screen_z
  end
end
Just add symbol "&" in the filename
View attachment 108129 View attachment 108130
Also too lazy for aliasing

I'm p. Sure this is *exactly* what I need. I'm at work rn so I'll check it out later but ty ty~

Original thread: https://forums.rpgmakerweb.com/threads/draw-sprites-from-the-center.104893/