Galv's Stationary Turn

Galv

Veteran
Veteran
Joined
Oct 1, 2012
Messages
1,306
Reaction score
1,575
First Language
English
Primarily Uses
RMMZ

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
18
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,306
Reaction score
1,575
First Language
English
Primarily Uses
RMMZ
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,197
Reaction score
274
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
266
Reaction score
482
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,306
Reaction score
1,575
First Language
English
Primarily Uses
RMMZ
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,197
Reaction score
274
First Language
English
Primarily Uses
N/A
I have the latest version installed.
 

Galv

Veteran
Veteran
Joined
Oct 1, 2012
Messages
1,306
Reaction score
1,575
First Language
English
Primarily Uses
RMMZ
Have you checked for plugin conflicts?
 

Skurge

" (GASP) What's going on!? "
Veteran
Joined
Jul 12, 2015
Messages
1,197
Reaction score
274
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,306
Reaction score
1,575
First Language
English
Primarily Uses
RMMZ
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,197
Reaction score
274
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,306
Reaction score
1,575
First Language
English
Primarily Uses
RMMZ
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,306
Reaction score
1,575
First Language
English
Primarily Uses
RMMZ
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

Are we allowed to post about non-RPG Maker games? And, if so, would any of you be interested in a short, proof of concept type non-euclidian puzzle game?
I should realize that error was produced by a outdated version of MZ so that's why it pop up like that
Ami
i can't wait to drink some ice after struggling with my illness in 9 days. 9 days is really bad for me,i can't focus with my shop and even can't do something with my project
How many hours have you got in mz so far?

A bit of a "sparkle" update to the lower portion of the world map. :LZSexcite:

Forum statistics

Threads
105,883
Messages
1,017,232
Members
137,607
Latest member
Maddo
Top