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
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
本贴来自国际rpgmaker官方论坛作者:Coolie处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:
https://forums.rpgmakerweb.com/threads/individual-animation-dimensions.155453/