MV Diagonal Movement

FEATURES
Adds diagonal movement for the player using the keyboard and also optionally using the mouse.
Includes an option to use diagonal charactersets to show diagonal sprites (for those who wish to use them).

VERSION 1.5 – RPG Maker MV
Download Plugin file
Download Demo

Advertisements

47 thoughts on “MV Diagonal Movement

  1. logan7007 says:

    Pretty useful plugin, a logical one to have. And the new pathfinding is more smart than the engine gives by default.

    But the fact that you can get around EVERY obstacle by diagonally makes the movement looks weird periodically. I mean, sometimes a game has to have tilesets wich you need to get around only by direct movements, but diagonal ones makes it look like character stepping on it, or somehow moves under the obstacle.

    Can i somehow block the diagonal movement when character gets around something?

  2. Rob says:

    Hi, usefull plugin. I am trying to set a variable when player character is facing diagonal to trigger an event.. How can i do this ?

    Ex.: if player is facing north-est( 9 on the numeric keypad) set var1 to 9.. Is it possible ?

    Thank you

    • Galv says:

      Sort of but not quite as simple. You can use script to return diagonal facing.
      $gamePlayer._diagDir

      This will return false if the player is facing a straight direction. It will return a number 1,3,7,9 (like on the keypad) for facing a direction.

  3. Yinyamina says:

    Hey Galv, is there a way to make the diagonal walk speed slightly slower? Currently, my characters look like they are speeding, but only when diagonal.

    • Galv says:

      Actually I added that but forgot to update this page. Version 1.1 has the option to change diagonal speed.

      But if you are talking about super-speed that is caused by a plugin conflict, sorry I cannot help with that

      • Yinyamina says:

        No, it’s not crazy speeding, its just the same speed as walking normally, but because its going diagonal it looks faster. Another thing I noticed was when walking diagonally over a region effect, it doesn’t seem to trigger. (Using your map animations plugin) I’ going to keep playing with it and see if it is just a plugin conflict.

      • Galv says:

        Try moving the diagonal movement plugin before the map animation effects plugin. That’s the position in my working project.
        If still doesn’t work then I’m sure it’s another plugin conflict like you said.

        The diagonal speed issue should be fixed with the latest diagonal update :)

      • Yinyamina says:

        Thanks I think that did it.

  4. That God Who Never Died says:

    Hey Galv,
    Is it possible to make a plugin where the character only move diagonal, I’m using isometric maps.

  5. Galv says:

    Sorry I am too busy to do requests at the moment.

  6. Blunderbusta says:

    I noticed in the demo that your actor manually or via mouse click avoids taking diagonal shortcuts near the fence corners, sometimes you can’t move diagonal at all near the fence pieces. Is there a fix for this I’m not aware of- I know it’s possible because other diagonal movement scripts have done so but do not provide the additional diagonal movement frames.

  7. I send bug reprot here friend.

    http://forums.rpgmakerweb.com/index.php?/topic/48860-yep-yanfly-engine-plugins-newest-self-switches-variables-plugin-count-113/&page=195#comment-637810

    Bug description:
    Plugin Name: YEP_EventChasePlayer.js
    Bug Explanation: Framerate DROP down to 1fps when use this plugin and the plugin Galv’s Diagonal Movement
    https://galvs-scripts.com/2015/12/12/mv-diagonal-movement/

    Error Report: nothing
    Exact Steps on How to Replicate Bug: install Galv’s Diagonal Movement and YEP_EventChasePlayer.js
    _______________________________________________________________________________________
    A small bug.
    I saw your plugin on youtube and it’s great.
    I just installed it with much joy.
    Because it replaces another.
    However, because your plugin has an 2 FPS, when a monster we track.
    I disabled all the plugin, and it would be that you use incompatible scripts.
    I noticed that this happened with the diagonal plugin Galv.
    with a solution?.
    I think of a variable conflict in the javascript can be?

    Thank you friend.
    Edited just now by Jonforum

  8. Caedisia says:

    Is it possible to use a 3-frame idle with 8-frame walking and running?

  9. Galv says:

    Updated to version 1.4 to calculate diagonal move speed better so it doesn’t conflict with some plugins.

    Doh, created an issue with followers. Reverting to 1.3 until I work out why.

  10. Arthur says:

    Hi, i use your script and he’s awesome, but now i have some trouble, in my game i need use direction move lock, and now i know 1 script for this, and he’s don’t work with diagonal movement, (Movement Direction Lock by HIME), mb u know how fix this? Sorry of my english and thx for attention!

    • Galv says:

      The diagonal mouse doesn’t work well. You can disable it.
      Sorry, I think I misread. If the two plugins don’t work together then they are not compatible unfortunately.

  11. tonjense says:

    Hi, can you please explain what you mean by ‘ The new sprite used will be in the position directly below the selected character graphic’. It’s not clear to me what I should do to make the switch…

  12. Galv says:

    Updated to 1.5 to add diagonal charset when using ‘turn toward player’ event command and the player is on the diagonal position

  13. startamerz says:

    So if I want a right sprite to walk in that direction we need to use our own huh?

  14. Mike says:

    I don’t know if this has since been updated, but when using the jump command, MV still defaults to one of the up/down/left/right sprites. Is there a way to use the diagonal sprite I’ve created for use with this plugin?

    Thank you for your work, by the way. Great stuff!

  15. AA says:

    Is it possible to have the events also moving diagonally?

  16. AA says:

    Sorry, it makes me looks dumb. :)
    I was testing with the other demo, the ones including all 3 features (diagonal, multiframes animation).
    Now I’ve tested the new demo and yes… the new guys move in diagonal. However… I was expecting for something else…

    For example, I was testing with the Approach movement, and the event is following me but walks only in zig-zag, he is not following me by walking diagonally.
    This is what I was trying to accomplish…

    Thanks!

  17. AA says:

    I tested with Victor’s Diagonal Plugin and it seems it can also be enabled to work for events, not only chars. But his multi frame I think works in a different order…
    I’ll see if is possible to merge the plugins…

  18. Comone says:

    I was getting a really strange error with Super Orange Movement and so I switched to this. Once I realized that I needed to turn the diagonal images off (until I create some of those) I am off to the races. Thanks for this one!

  19. Lidnel says:

    Good work, really helpful!
    Just one question: can i turn my character in some diagonal direction via script line? (like in “set movement route” – turn left, right, but up-down etc)
    Thank you

    • Galv says:

      In move route, use ‘script’ and put:

      this.setDirection(1); this._diagDir = 1;

      Replace the 1 with the diagonal direction number (1,7,9,3 are diagonals)

  20. AA says:

    Any chance you could update this to work for events and chase player plugin?

    • Galv says:

      This plugin does work for events (see demo with events in motion). A different plugin would be required to move diagonals when chasing player.

  21. Erik says:

    Awesome scripts, dude! You’re the best! I’ve one question. I want to use tall sprites in my game. Would this plugin work with them, or do you need to use the default chibi sized ones?

    Thanks!

  22. I read through all the comments, and about a year ago, somebody asked if there was isometric movement possibilities. Is there any chance of you offering an option within the plugin to choose between true diagonal and isometric diagonal directions?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s