Aligning the tops of two different sized sprites on the map

Hi there! I currently have a character that I want to step behind an anvil and then start hammering on it, which is requiring me to switch between two different sprite sets. The problem I'm having is that the scales of the sprites are different, and I can't seem to align the tops of them in order to make the transition smooth.

akay_align.png

Here are the two I used first (I removed the 7 empty spots to save room on this page):

akay_charshort.png
akay_blacksmithshort.png


I also have a placeholder "empty" anvil sprite for when the blacksmith is not standing there, which turns off at the moment the sprite switches. When I place them on the map, the anvil version seems to be in the right place in the editor:

1663037414160.png


However, in the actual game, it moves up and aligns with the bottom of the blacksmith's walking sprite instead of the top, making the transition look awkward.

akay_align2.png


I've tried adding more space on the top of the anvil sprite in an attempt to "push" it lower on the map, but this doesn't change anything. I could use some advice on how to proceed with this. I can't really change the scale of the blacksmith's walking sprite cause then it won't match the grid of the game, so I'm stuck with trying to move the anvil sprite lower.
The problem I'm having is that the scales of the sprites are different
Why? It seems to me a lot of your problems would be alleviated if you simply made the anvil be its own one-tile image, gave it above player priority, then moved the NPC event behind it normally.

That being said...

When I place them on the map, the anvil version seems to be in the right place in the editor...However, in the actual game, it moves up and aligns with the bottom of the blacksmith's walking sprite instead of the top
Right. What you're missing is that if you use an image for an event that's more than a 48x48 tile, it will center it (bottom middle) on the tile where you placed the event.

So if your anvil is more than one tile high, you need to place the event in the editor on the tile where you want the bottom of the anvil - there's no way to see in the editor where the rest of the image will be.
Why? It seems to me a lot of your problems would be alleviated if you simply made the anvil be its own one-tile image, gave it above player priority, then moved the NPC event behind it normally.
The problem is that the NPC is hammering on the anvil, so her legs would be under the anvil, and her arms are over the anvil. That's why I decided to make it a unique sprite.
So if your anvil is more than one tile high, you need to place the event in the editor on the tile where you want the bottom of the anvil - there's no way to see in the editor where the rest of the image will be.
I thought about this, with the main problem being that the anvil sprite would need to be one tile lower, but I want one sprite to transform into the other, so they would need to be on the same tile.

I am gonna keep working on this tonight and might be able to figure something out, I'll update this post if so.

Edit: Alright after fiddling with it some more, I found a good workaround. I kept the unattended anvil as its own sprite and repositioned it on the map so that it appeared in the right place.

For the other sprite, I basically cut off the bottom half of the anvil so that it was the same size as the walking sprite. Then, when the switch happens, I switch the unattended anvil's sprite to the bottom half of the attended anvil, so that it does not obscure the sprite above it.

akay_char.png


This gives me the desired visual effect of her attending the anvil when she moves behind it.

akay_blacksmithshortnew.png


Thanks for the assistance!

Original thread: https://forums.rpgmakerweb.com/threads/aligning-the-tops-of-two-different-sized-sprites-on-the-map.151264/