DBS Diagonal Move (8 directions) - RPG Maker MV, MZ

DBS Diagonal Move (8 directions) - RPG Maker MV, MZ
Created by iAmDigs


1633745268531.png

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.


1633744188476.png

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
DBS Diagonal Move (8 directions) - RPG Maker MV, MZ
Created by iAmDigs


View attachment 203429
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.


View attachment 203426
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
hi there!
How do you create the diagonal animations? the RMMZ have the generator but only generate the normal straight animations and like this when the character turn in diagonal just stays invisible, of course because I dont have the diagonal sprites .... could you help me to understand?
@Beleros MV / MZ only support 4 directions, for 8 direction, you need
a sprite sheet and create them yourself or let it be made if possible.

unless there is a software that support 8 directional movement.
This has been really great to use so far, the only problem I'm experiencing is that key inputs won't always be processed, if I travel upwards or downwards then tap the key to turn diagonally then this will not always work. I'm using this plugin with MV

Original thread: https://forums.rpgmakerweb.com/threads/dbs-diagonal-move-8-directions-rpg-maker-mv-mz.141123/