[RMMV] Using Larger Character Sprites as Player Characters

Hi! I'm making a game where sometimes the player plays as a larger character (96x96, similar in size as the big monsters). The problem with that is the game draws the character sprite from the bottom of the tile, and when the player faces left or right the character isn't aligned properly with the rest of the tiles.

Is there a way to make the sprite centered on the tile instead of drawing from the bottom? I found an old thread that describes the same issue I had, but it was for VX Ace and the script offered as a solution doesn't seem to work for MV (I copied the code into a .js file and activated the plugin in my game). I'm not familiar with scripting in MV so it's possible I did something wrong though. Any help is appreciated, thanks in advance!
Hi! I'm making a game where sometimes the player plays as a larger character (96x96, similar in size as the big monsters). The problem with that is the game draws the character sprite from the bottom of the tile, and when the player faces left or right the character isn't aligned properly with the rest of the tiles.
I'm confused by what you're describing - "drawing from the bottom" (or using the illustrations in the other thread, where it shows the bottom of the sprite is on the bottom of the map tile) wouldn't have anything to do with the alignment left or right.

Notice that the other poster, which you claim describes the same issue, is saying the exact opposite of what you are: "it will center the graphic on the X axis, but not the Y"

Can you provide screenshots of what you're seeing that you want to change?
it was for VX Ace and the script offered as a solution doesn't seem to work for MV (I copied the code into a .js file and activated the plugin in my game).
VX Ace and MV use two entirely different coding languages.
Sorry, I should have done that from the beginning. Here's a screenshot of what I mean:
1631035038079.png

The player is controlling the lead ship, which is 96x96 in size, but when facing left or right it's off center so it looks like it's pointed at the space above the imp. What I'm trying to do is to get it so that it points directly at the imp when approaching from the left or right, sort of like this:
1631035281788.png

I realize I can probably just move the left/right facing sprites down, but that won't work for wider ships. So I was wondering if there was a way to make the larger character sprite centered on the tile. Let me know if you need me to clarify anything else, and thanks again!
I realize I can probably just move the left/right facing sprites down, but that won't work for wider ships. So I was wondering if there was a way to make the larger character sprite centered on the tile. Let me know if you need me to clarify anything else, and thanks again!
I understand what you're talking about. General answer: you would need a plugin to change where the graphic is being drawn in relation to the tile it's on. I suspect you would need to commission that plugin, because I don't recall ever seeing anything like it (someone else might have a suggestion).

More in-depth answer: In this specific case, you're asking for something screwy. Your ship graphic takes up 2 tiles, and the ship is pointing through the middle of that (essentially the nose is on the dividing line between the tiles). So what you're asking isn't just shifting the image, it's also going to mess with how it works interacting with anything on the map, because it will be taking up one full tile (where the middle of your graphic, the actual ship is) and an additional half on the top and bottom. That will probably cause undesired behavior when it comes to passability collisions and event detecting and such.

I think it might be easier if you chose a standard size for your assets and put your smaller fighters and monsters into that larger size. That way, everything would become centered in the same way and it would line up properly again.
Hmm... Okay, thanks for your help! I'll keep the thread open in case someone knows about an existing plugin. Thanks again!
Honestly your best bet is individually editing each ship's sprite. A plug-in would be overkill I feel like. So long as the individual sprites are square in shape, just editing the sprite wouldn't cause too much of an issue.

It's funny you posted this - I had just experienced the same frustration with my project and just decided editing the sprites was the best solution.
Honestly your best bet is individually editing each ship's sprite. A plug-in would be overkill I feel like. So long as the individual sprites are square in shape, just editing the sprite wouldn't cause too much of an issue.

It's funny you posted this - I had just experienced the same frustration with my project and just decided editing the sprites was the best solution.
Could you elaborate please? I'm not sure how I would edit the ship sprites to make it work. A square shaped ship would still have the center pointed above other tiles like in my first screenshot, no?
I've actually have a similar issue with long sprites. I have a character with a long tail, and I wanted to keep the "main body" in the center too. As said above, the character sprites would need to be edited to "center" the character. I managed to find a format to do so earlier.

(Note that my characters use taller sprites that are 48x96, but as long as you follow the general spritesheet proportions I think it would work)


This is how my default template looks like. The blue grid denotes the size of a single tile in MV (48x48).
1631267558377.png




Now my long-tailed character appears to be 2 tiles wide in-game. The table's there for reference for the single tile size (48x48).
1631267834536.png




How his spritesheet appears is like this, though (tail recolored for visibility). I added an extra 48x96 (my default size) to both sides, and kept the "main body" in the center of each group. I left a blank space in for the side-facing sprites. Basically, the blank spaces are just so that the program reads the spritesheet correctly.


1631268183643.png
1631268183643.jpg



Hope this helps, willing to explain more if needed 🙏
I've actually have a similar issue with long sprites. I have a character with a long tail, and I wanted to keep the "main body" in the center too. As said above, the character sprites would need to be edited to "center" the character. I managed to find a format to do so earlier.
...
Thanks for the detailed response! I'll definitely use it if I find myself in a similar situation, but unfortunately I don't think that helps with my needs right now. The space sections of my game (where the ships are featured) will be fully top down, and the ship sprites are like this:
1631291751556.png

The arrows indicate where the ship is centered/pointing at. When going left or right however, the collision is at the bottom 1/3 of the sprite, so if the player wants to interact with an event it'd look like this:
1631292094256.png

X is where the event has to be for the interaction/collision to work, but that's not really intuitive for the player. Ideally I'd like to place the event at where the circle is, so I was wondering if it was possible to make the engine draw the character from the center tile. Is that possible, and if not is there some workaround? Thanks in advance!
Ah, I see, I'm guessing it would be harder to edit square sprites than rectangle ones. The only plugin I've heard of that may work for is this one, but I haven't tried it myself so I'm unfamiliar with setting it up.
This one looks promising, thank you! I'll give it a try.

Original thread: https://forums.rpgmakerweb.com/threads/rmmv-using-larger-character-sprites-as-player-characters.140237/