I'm having an issue with one of my character sprites not fully being able to get selected. As a result only part of my character is showing on the screen. Never really had this problem before and I'm not sure how to fix it because this was a custom sprite that was done awhile back when I was last active here. Any help would be appreciated on this!
Character Sprite Not Fully Selectable
RPG Maker MV SupportReally easy. Just add a $ to the file name.
Ha! And I didn't get ninja'd on this one!
Edit
Should clarify that it has to be at the start, like this $H horn
Ha! And I didn't get ninja'd on this one!
Edit
Should clarify that it has to be at the start, like this $H horn
Ah ok! I'm definitely going to try that!
To expand TRIDIUM's wonderful answer with the *reason* for this happening to you, it's because by default a walking graphic image is intended to contain 8 characters, 4 columns and 2 rows, each with 4 directions consisting of 3 frames. Therefore in the engine code, when determining the "slice" of a character sheet to display, it divides the width by 12 (3x4) and the height by 8 (4x2). What you're seeing in the selector there is a full "sheet" for the character index you chose, which is 3/12 of the width and 4/8 of the height (or a quarter by a half).
Adding the $ to the filename tells the engine that this is in fact a *single* character graphic, so the code will only divide the width by 3 and the height by 4.
Adding the $ to the filename tells the engine that this is in fact a *single* character graphic, so the code will only divide the width by 3 and the height by 4.
That's pretty interesting to know! I'll always keep that in mind every time I look at a single character graphic now!
I sense sarcasm, @Trihan.
Not at all! Your answer was concise and to the point, and resolved the issue OP was having. I was just expanding the mechanical side of things to explain the source of the problem. ^_^
Original thread: https://forums.rpgmakerweb.com/threads/character-sprite-not-fully-selectable.161667/