Galv's Stationary Turn

Galv

Veteran
Veteran
Joined
Oct 1, 2012
Messages
1,185
Reaction score
1,134
First Language
English
Primarily Uses
N/A

Stationary Turn - Version 1.3
RPG Maker MV Plugin
Galv



Introduction
Just another simple one, changing player movement.

Features
This plugin changes movement so that when the player taps a direction that he/she is not already facing then they will turn on the spot instead of moving.
If moving, dashing or already facing the direction of movement, there will be no delay and walking will happen as normal so as to keep movement as fluid as possible.
This plugin does not take into account mouse movement.

How to Use
- Copy the "GALV_StationaryTurn.js" file into your project's /js/plugins/ folder.
- Activate plugin using the 'Plugin Manager'
- Read the help file and examine the demo to learn how it works.

Plugin
Get it here

Credit and Thanks
- Galv

Terms
Free to use in any RPG Maker MV project including commercial. Please credit "Galv". :)

Updates
2017-03-07 - Version 1.3 - Added compatibility with HIME's lock facing direction plugin
2016-07-28 - Version 1.2 - Fixed a bug to do with embarking/disembarking vehicles
2016-07-24 - Version 1.1 - Fixed a bug when forcing movement would not move in some cases
2016-06-30 - Version 1.0 - Release
 
Last edited:

Linard

Veteran
Veteran
Joined
Jun 29, 2016
Messages
202
Reaction score
17
First Language
Filipino
Primarily Uses
RMMV
Thanks for this plugin  :)  This is i've been looking for :D  
 

Galv

Veteran
Veteran
Joined
Oct 1, 2012
Messages
1,185
Reaction score
1,134
First Language
English
Primarily Uses
N/A
Fixed up a bug in version 1.1 - an issue when forcing player movement.
 

Skurge

" (GASP) What's going on!? "
Veteran
Joined
Jul 12, 2015
Messages
1,104
Reaction score
228
First Language
English
Primarily Uses
N/A
I have found a bug regarding exiting a vehicle.


When exiting a vehicle you remain on the spot rather than moving a space from the exit direction.
 

KaYsEr

Koruldia
Veteran
Joined
Mar 14, 2014
Messages
222
Reaction score
452
First Language
French
Primarily Uses
RMMV
That can be a nice little touch. Is it compatible with your diagonal-sprites plugin? I mean, for example if I'm facing the "Right" direction, and then briefly press "Down+Left" at the same time, is my character going to face the "down-left" direction? Thank you!
 

Galv

Veteran
Veteran
Joined
Oct 1, 2012
Messages
1,185
Reaction score
1,134
First Language
English
Primarily Uses
N/A
I have found a bug regarding exiting a vehicle.


When exiting a vehicle you remain on the spot rather than moving a space from the exit direction.


Do you have the latest version? I have just tested vehicles and cannot replicate the issue.

That can be a nice little touch. Is it compatible with your diagonal-sprites plugin? I mean, for example if I'm facing the "Right" direction, and then briefly press "Down+Left" at the same time, is my character going to face the "down-left" direction? Thank you!


I'm not sure, I have not tested, but I struggle to hit the exact diagonal (both vertical and horizontal buttons) without it registering one or the other before moving diagonal. In theory it should work, though :)
 

Skurge

" (GASP) What's going on!? "
Veteran
Joined
Jul 12, 2015
Messages
1,104
Reaction score
228
First Language
English
Primarily Uses
N/A
I have the latest version installed.
 

Galv

Veteran
Veteran
Joined
Oct 1, 2012
Messages
1,185
Reaction score
1,134
First Language
English
Primarily Uses
N/A
Have you checked for plugin conflicts?
 

Skurge

" (GASP) What's going on!? "
Veteran
Joined
Jul 12, 2015
Messages
1,104
Reaction score
228
First Language
English
Primarily Uses
N/A
Did a long test through the plugins, I totally forgot about the plugin request I made about having my vehicle event entry/exit altered and the direction in which you leave it remains.


If you wish to look at the plugin that I had requested here is the link:
 

Galv

Veteran
Veteran
Joined
Oct 1, 2012
Messages
1,185
Reaction score
1,134
First Language
English
Primarily Uses
N/A
Edit your vehicle entry and exit plugin to change:


Game_Player.prototype.forceMoveTo = function(d) {
this.setThrough(true);
this.moveStraight(d);
this.setThrough(false);
};


To:

Code:
Game_Player.prototype.forceMoveTo = function(d) {
	this._moveRouteForcing = true;
    this.setThrough(true);
    this.moveStraight(d);
    this.setThrough(false);
	this._moveRouteForcing = false;
};
 

Skurge

" (GASP) What's going on!? "
Veteran
Joined
Jul 12, 2015
Messages
1,104
Reaction score
228
First Language
English
Primarily Uses
N/A
You're a genius, thank you for the fix there mate- your scripts reach peak perfection there all brilliant :)
 

Galv

Veteran
Veteran
Joined
Oct 1, 2012
Messages
1,185
Reaction score
1,134
First Language
English
Primarily Uses
N/A
Updated to version 1.2 with fixes to vehicle embarking related bugs. Thanks Skurge for the bug reports
 

Galv

Veteran
Veteran
Joined
Oct 1, 2012
Messages
1,185
Reaction score
1,134
First Language
English
Primarily Uses
N/A
Updated to version 1.3 - Added compatibility with HIME's lock facing direction plugin.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

buinguyenhoangtho wrote on fizzly's profile.
Hello @fizzly, i would like to use your asset/ resource for my project ( is maybe commercial ). May i have your permission? Thanks you !
I have 470+ hours on RMMV but have only made a demo game, is this normal? :kaoswt: (I lose motivation a lot plus I use a 32gb laptop, so..)
I like Iron Maiden.
Benku wrote on Magnus0808's profile.
Hey man you helped me out a long time ago with a plugin i was wondering if you can help me out one more time since its literally the last thing i need help with if not is cool but id figured id ask you one more soild.
Stream will be live shortly with a guest stream! Tonight, a new guest joins~ Feel free to drop by!

Forum statistics

Threads
95,425
Messages
929,059
Members
125,657
Latest member
jack527
Top