Changes to character appearance resets on map transfer.

So, up until now I've had my player use only one spritesheet. It's a big spritesheet and has a few different appearances for him. It worked well, but there was still a lot of wasted space. I'm working on the second ep of this project and I've decided to start using single sheets instead of sheets that contain multiple characters and everything.

I just figure it'll be cleaner and file sizes will be less. I'll also, presumably, be unloading image sheets that aren't be used.

The new problem I ran into was that when I use a Move Route and change the image within their, I can change it to another sheet which works as expected. But then, if I leave that map for any reason, it'll default to what the character was wearing before.

Is there a way to make it so the change stays? It just seems to revert back to whatever I have the player sheet set to in the Database settings.
Move route image changes are intentionally temporary. If you want to permanently change an actor's graphics, try the Change Actor Images event command. This lets you specify the three images used for the actor: face, map sprite, and sideview battler. 🙂

If you want to change the map sprite independently of the other two, try this in a script call:
Code:
var actorId = 1;
var filename = 'Actor1';
var index = 0;
$gameActors.actor(actorId).setCharacterImage(filename, index);
Values to edit in the first three lines:
  • actorId: the ID of the actor in the database
  • filename: the image filename (without the .png extension)
  • index: the block to use, starting at zero and counting left to right (0, 1, 2, 3 for the first row of a full spritesheet)

Original thread: https://forums.rpgmakerweb.com/threads/changes-to-character-appearance-resets-on-map-transfer.107769/