Galv's Stationary Turn

Galv

Veteran
Veteran
Joined
Oct 1, 2012
Messages
1,235
Reaction score
1,428
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,235
Reaction score
1,428
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,192
Reaction score
265
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
264
Reaction score
481
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,235
Reaction score
1,428
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,192
Reaction score
265
First Language
English
Primarily Uses
N/A
I have the latest version installed.
 

Galv

Veteran
Veteran
Joined
Oct 1, 2012
Messages
1,235
Reaction score
1,428
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,192
Reaction score
265
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,235
Reaction score
1,428
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,192
Reaction score
265
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,235
Reaction score
1,428
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,235
Reaction score
1,428
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

The Ace attorney series are so great games... But at the same time such a travesty.
Made a video showcasing a plugin (by Lanza) that adds 5 more weather effects to our MV games. :LZYsmile: Namely:
Ash-dust,
bloodrain,
Cherry Blossom Petals,
Hail,
and bubbles.

I just like this website:
lol

Forum statistics

Threads
103,238
Messages
998,291
Members
134,728
Latest member
ripleydx
Top