DBS Diagonal Move (8 directions) - RPG Maker MV, MZ
Created by iAmDigs
This plugin allows characters to move in 8 directions.
Terms of use
Modification is allowed. PRs and issues with improvements are welcome in the repository.
Can be used in commercial and non-commercial games
Usage credits are welcome but not required
Compatible With
- RPG Maker MV
- RPG Maker MZ
Instructions
To download the plugin
- Open the file DBS_DiagonalMove.js
- Copy the source code
- Create a new file in your project's js/plugins folder named DBS_DiagonalMove.js
- Paste the source code into the new file created in the project and save
How to activate the plugin?
The plugin is activated automatically after including it in the folder
js/plugins from the project and its addition in the RPG Maker Plugin Manager.
How to use diagonal animations?
The plugin recognizes a sprite with diagonal animation in character files prefixed with
& in the name.
Example:&Actor1.png
The diagonal animation must be inserted in the same image with the straight animation of the character.
Also, the straight animation must always be at an even index while its diagonal animation must be at the first subsequent odd index.
Example: If the straight animation is at index 0, the diagonal animation must be at index 1.
Straight animation indexes: 0,2,4,6
Diagonal animation indexes: 1,3,5,7
The diagonal animation must follow the following order:
- Bottom Left
- Top Left
- Bottom Right
- Top Right
Sprites without diagonal animation and without the prefix
& in the name can be used normally with movement in 8 directions.
This plugin does not provide plugin commands.
Updates
- Version 1.1: Add mouse Diagonal Move
本贴来自国际rpgmaker官方论坛作者:iAmDigs处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:
https://forums.rpgmakerweb.com/threads/dbs-diagonal-move-8-directions-rpg-maker-mv-mz.141123/