Individual Animation Dimensions

Individual Animation Dimensions (RMMV)
Author(s):
Coolie, caethyril
Version: 1.0
Updated Date: March 2nd, 2023​

What does this plugin do?
RPG Maker MV forces a very small 192x192 size for each cell in an animation. This is way too small for an engine that allows us to make games with much higher resolutions. This plugin allows you to set the width and height of the animation cells in individual animations in your database, so you can use anims with cell sizes bigger (or smaller) than 192x192.

Keep in mind, each cell must be the same width and height on BOTH animation files (if you're using two) used to create the animation.

When the notetag to customize the animation size does not exist, the animation will use the default 192x192 cell size, so the default RMMV animations will not be ruined.

Screenshot
iad_screenshot.png


How do I use this plugin?
  • DOWNLOAD the plugin from my Pastebin here. Do not change the filename.
  • Add the plugin to your js/plugins/ folder in your RMMV project.
  • Place the plugin somewhere near the bottom of your plugin list and make sure the plugin is ON.
  • Use the notetag described below.

Changing an Animation's Dimensions
To change an animation's dimensions, you will need to add a note to the NAME of your animation (name refers to the animation's name in your game's database, not the filename of the animation).

YourAnimationName<iad:W,H,[+/-]X,[+/-]Y>

Just like this, do not use any spaces!

  • W = the width of the animation cells for this animation (i.e. 256)
  • H = the height of the animation cells for this animation (i.e. 128)
  • X = the X offset of the animation, in case the editor doesn't allow you to get it in the perfect position. Needs a + or - before it.
  • Y = the Y offset of the animation, in case the editor doesn't allow you to get it in the perfect position. Needs a + or - before it.
Example of an Animation name that would utilize this plugin:

Fire<iad:256,128,+45,-36>

The above example would expect an animation sheet of...
  • Five columns at a width of 256 each, or 1,280 pixels wide
  • Image height equaling 128 x the number of rows in the image file
  • For a 60 cell anim, this would be 12 rows of 5, or 1,536 pixels high.
In-game...
  • The animation would be placed in-game +45 pixels from its X position in the MV editor.
  • The animation would be placed in-game -36 pixels from its Y position in the MV editor.
  • TIP! You can leave your animation at X/Y 0/0 in the editor and use the notetag on the name to position your animation anywhere on the screen!
  • TIP! It may also be a good idea to always make each cell have an EVEN value (i.e. 500x250 rather than 501x249) to ensure that the animation is always properly centered where it is placed. Not required, though!

Compatibility
This plugin was written for RPG Maker MV version 1.6.1! It may not work with earlier versions, which are unsupported. Please make sure you are using RPG Maker MV version 1.6.1 before making a bug report.

This plugin only overwrites one function in sprites.js:

Sprite_Animation.prototype.updateCellSprite

If you have another plugin which overwrites this function, it may be incompatible. I'll do my best to update the plugin for compatibility.

Terms of Use
This plugin is free to use in both non-commercial and commercial projects. Credit is not required, but is always nice. If you do wish to credit the individuals responsible for this plugin, they are:

  • Coolie (Author)
  • caethyril (Notetag Assistance)
Download Link
Pastebin:
Coolie_IndividualAnimDimensions.js
This sounds great, what would be the maximum size/Hight for a 5 column animation with this?
This sounds great, what would be the maximum size/Hight for a 5 column animation with this?
The height of the image would be the defined height of your individual cells multiplied by the number of rows, and the width of the image would be the defined width of each cell multiplied by 5, the standard way that RPG Maker MV parses animation images for the editor.

For example, a 30 frame animation image (5 columns, 6 rows) with a cell size of 384 and height of 108 for each individual frame would be 1,920x648 (384x5 and 108x6). There is no maximum. The plugin will simply parse the animation from the cell size you specify, along with the width and height of the image as a whole.

Be careful with very large images, as the RPG Maker MV editor itself can't handle super huge images sometimes. Be sure to save your project before editing an animation using a really large image. The editor may crash on occasion.
This plugin also works on RPG Maker MZ with a very minor edit.

Simply rename
`Sprite_Animation.prototype.updateCellSprite` in line 143 to
`Sprite_AnimationMV.prototype.updateCellSprite` and voila!

Thanks a lot Coolie!

Edit: BTW I added hue support by adding this line right before line 186:
`sprite.setHue(pattern < 100 ? this._hue1 : this._hue2);` (only tested in RPG Maker MZ)
😀 Glad it's of use to you!
Hi, would you happen to have any more information on how it works on MZ? I tried your fix on line 143 of the plugin but I can't figure out how to work it in the editor. When I place frames in I don't see the image in the cells at the bottom, I don't really know how I could place it down since the editor still only wants to use the 192x192 cells. Anyway, if you have any info I would be so grateful!
This plugin also works on RPG Maker MZ with a very minor edit.

Simply rename
`Sprite_Animation.prototype.updateCellSprite` in line 143 to
`Sprite_AnimationMV.prototype.updateCellSprite` and voila!

Thanks a lot Coolie!

Edit: BTW I added hue support by adding this line right before line 186:
`sprite.setHue(pattern < 100 ? this._hue1 : this._hue2);` (only tested in RPG Maker MZ)
Hi, would you happen to have any more information on how it works on MZ? I tried your fix on line 143 of the plugin but I can't figure out how to work it in the editor. When I place frames in I don't see the image in the cells at the bottom, I don't really know how I could place it down since the editor still only wants to use the 192x192 cells. Anyway, if you have any info I would be so grateful!
You have to use your imagination, the plugin doesn't modify the Editor. It is kind of annoying, but the best you can do is constantly check on "Battle Test".

I'm sorry, AFAIK there is no way to modify the editor itself.
1763809467495.png

Appears to instantly explode the game if I'm using it with YEP_CoreEngine.

That section is it merely booting the scenes:
Code:
Yanfly.Core.SceneManager_run = SceneManager.run;
SceneManager.run = function(sceneClass) {
  Yanfly.Core.SceneManager_run.call(this, sceneClass);
  Yanfly.updateResolution();
  if (!Utils.isNwjs()) return;
  if (Utils.RPGMAKER_VERSION && Utils.RPGMAKER_VERSION >= "1.6.0") return;
  if (Yanfly.Param.OpenConsole) Yanfly.openConsole();
};
Specifically 1371 is the third line.

Any ideas? I was going to use this with extracted effekseeker anims so they could be larger but still use MV spritesheets.


Hm, nevermind, actually it seems that it doesn't like the fact that the script directly downloaded from pastebin has a 1.00 in the filename. That causes it to fail loading (due to the excess period presumably).
View attachment 353409
Appears to instantly explode the game if I'm using it with YEP_CoreEngine.

That section is it merely booting the scenes:
Code:
Yanfly.Core.SceneManager_run = SceneManager.run;
SceneManager.run = function(sceneClass) {
  Yanfly.Core.SceneManager_run.call(this, sceneClass);
  Yanfly.updateResolution();
  if (!Utils.isNwjs()) return;
  if (Utils.RPGMAKER_VERSION && Utils.RPGMAKER_VERSION >= "1.6.0") return;
  if (Yanfly.Param.OpenConsole) Yanfly.openConsole();
};
Specifically 1371 is the third line.

Any ideas? I was going to use this with extracted effekseeker anims so they could be larger but still use MV spritesheets.


Hm, nevermind, actually it seems that it doesn't like the fact that the script directly downloaded from pastebin has a 1.00 in the filename. That causes it to fail loading (due to the excess period presumably).
Just to clarify, that's a Pastebin thing. The actual plugin has no name requirement, as it has no plugin parameters. You can name the file whatever you want to (just mentioning in case anyone else runs into this issue downloading from Pastebin).
No worries, I figured it out when I sat and thought "why wouldn't it be loading?" for a moment.

It then clicked there was also no description when I popped it into the plugin manager, which is generally unusual. So I tried renaming it and reimporting, and lo behold, a description, and it works.

The annoying part is that it's not something one normally wants to try due to many plugins exploding if you DO change their name.

Original thread: https://forums.rpgmakerweb.com/threads/individual-animation-dimensions.155453/