From Yanfly.moe Wiki
Jump to navigation Jump to search
Welcome to the wiki! This is where you can find resources from Yanfly.moe, Ækashics.moe, VisuStella, Caz Wolf, Fallen Angel Olivia, Atelier Irina, and other affiliated content creators.
Contents
Download
System
This is a plugin created for RPG Maker MV.
For help on how to install plugins, click here.
For help on how to update plugins, click here.
Got errors with your RPG Maker MV plugin? Click here.
这是为 RPG Maker MV 创建的插件。
有关如何安装插件的帮助,请单击此处。
有关如何更新插件的帮助,请单击此处。
您的 RPG Maker MV 插件出现错误?单击此处。
Total: 2 112 403Visitors Masterarbeit Writer
Yanfly Engine Plugins
This plugin is a part of the Yanfly Engine Plugins library.
该插件是 Yanfly 引擎插件库的一部分。
Introduction
In RPG Maker 2003, pictures had the ability to load spritesheets and display certain frames from them at the issue of a command. Ever since then, later iterations of RPG Maker lacked the feature. This plugin will bring back that old feature and give you access to use spritesheets as pictures once more with complete frame control.
在 RPG Maker 2003 中,图片能够加载精灵表并在发出命令时显示其中的某些帧。从那时起,RPG Maker 的后续版本就缺少了该功能。此插件将恢复该旧功能,并让您能够再次将精灵表用作图片,并完全控制帧。
Instructions
When putting a spritesheet into your project's /img/pictures/ folder, you have to name them a certain way.
将精灵表放入项目的 /img/pictures/ 文件夹时,必须以特定方式命名它们。
filename[HxV]
Replace H in the filename with the number of horizontal cells it has.
Replace V in the filename with the number of vertical cells it has.
将文件名中的 H 替换为其所含的水平单元格数。
将文件名中的 V 替换为其所含的垂直单元格数。
--- For example ---
"Actor1_1(9x6)" will have 9 horizontal cells and 6 vertical cells.
“Actor1_1(9x6)”将有 9 个水平单元格和 6 个垂直单元格。
As long as the picture's filename is formatted in such a way, it will be displayed in-game as a spritesheet.
只要图片的文件名以这种方式格式化,它就会在游戏中显示为精灵表。
--- Frames ---
Individual frames can be displayed using Plugin Commands or Script Calls (look in the later help sections to figure out how). To identify which frame ID a particular spritesheet cell is, start with 0 in the upper left. The frame ID increases as you go left to right, then it loops back around at the start of a new row. For example:
可以使用插件命令或脚本调用显示单个帧(请参阅后面的帮助部分以了解如何显示)。要识别特定精灵表单元格的帧 ID,请从左上角的 0 开始。帧 ID 从左到右依次增加,然后在新行的开头循环回来。例如:
0 1 2 3 4 5 6 7 8
9 10 11 12 13 14 15 16 17
18 19 20 21 22 23 24 25 26
27 28 29 30 31 32 33 34 35
36 37 38 39 40 41 42 43 44
45 46 47 48 49 50 51 52 53
Plugin Commands
Plugin Commands are event commands that are used to call upon functions added by a plugin that aren't inherently a part of RPG Maker MV.
插件命令是用于调用插件添加的函数的事件命令,这些函数本身不是 RPG Maker MV 的一部分。
Here is a list of Plugin Command(s) that you may use:
Using the Plugin Command event, you can set a specific picture to change to a different cell by using the Plugin Command below:
以下是您可以使用的插件命令列表:
使用插件命令事件,您可以使用以下插件命令将特定图片设置为更改为不同的单元格:
Plugin Commands:
Picture x Frame y
- Replace 'x' with the ID of the picture you wish to change the frame of.
- Replace 'y' with the frame ID to change the picture to.
- 将“x”替换为您要更改框架的图片的 ID。
- 将“y”替换为您要更改图片的框架 ID。
Script Calls
Script Calls are event commands that are used to run JavaScript code during an event to call upon unique functions, usually added by the related plugin.
脚本调用是事件命令,用于在事件期间运行 JavaScript 代码以调用通常由相关插件添加的独特功能。
Here is a list of Script Call(s) that you may use:
For those who wish to use JavaScript code instead of Plugin Commands, you can use the Script Call event command to do so:
以下是您可以使用的脚本调用列表:
对于那些希望使用 JavaScript 代码而不是插件命令的人,您可以使用脚本调用事件命令来实现:
var pictureId = 5;
var frame = 10;
$gameScreen.picture(pictureId).setSpritesheetFrame(frame);
The above code will adjust the designated picture to change to desired frame setting you would like.
上述代码将调整指定的图片以更改为您想要的框架设置。
Changelog
Version 1.00:
- Finished Plugin!