Is it possible to change character spritesheet animation order?

Discussion in 'RPG Maker MV' started by Berrymongler, Sep 11, 2019 at 5:51 PM.

  1. Berrymongler

    Berrymongler Warper Member

    Messages:
    2
    Likes Received:
    1
    First Language:
    English
    Primarily Uses:
    RMMV
    Hey! I was wondering if it's possible to change the order RPG Maker MV sprites appear in spritesheet. What I mean, is that there seems to be different sprite direction order in RPG Maker 2003 characters which go from facing up, right, down and left wherein MV they go down, left, right and up.

    I'm making game with the classic 2003 looking graphics and I'm asking if there is a way to make this sprite order the same as it is in 2003, or is Photoshop the only way to go.
     
    #1
  2. caethyril

    caethyril ^_^ Veteran

    Messages:
    1,112
    Likes Received:
    686
    Location:
    UK
    First Language:
    English
    Primarily Uses:
    RMMV
    A plugin could do this, but for maximum compatibility with other plugins I'd suggest editing the graphics themselves. :kaoswt:

    That said, I think this is the relevant method:
    Code:
    Sprite_Character.prototype.characterPatternY = function() {
        return (this._character.direction() - 2) / 2;
    };
    So you could try saving the following as a .js file (Save As > File Type: All Files, File Name: whateverYouLike.js) and importing as a plugin (preferably near the top of the load order in the Plugin Manager):
    Code:
    Sprite_Character.prototype.characterPatternY = function() {
      switch (this._character.direction()) {
        case 2: return 2;   // down
        case 4: return 3;   // left
        case 6: return 1;   // right
        case 8: return 0;   // up
      }
    };
     
    #2
  3. Berrymongler

    Berrymongler Warper Member

    Messages:
    2
    Likes Received:
    1
    First Language:
    English
    Primarily Uses:
    RMMV
    Hey! Thanks a lot, your script works perfectly! This is exactly what I was searching for :)
     
    #3
    caethyril likes this.

Share This Page