Stand Still and Turn

Parallax Panda

Got into VxAce ~2014 and never stopped...
Veteran
Joined
Oct 29, 2015
Messages
990
Reaction score
1,290
First Language
Swedish
Primarily Uses
RMMV
I tried to make a system using Yanfly plugins that allowed the player to hold down shift and press down, left, right or up in order to turn the character without taking any unnecessary steps. This would give the player more control in some cramped puzzle areas.

The first plugin used are Button Common Events to override the [shift] key to trigger common event 1 (seen bellow) instead of dash. Since there's no need for dash in my game anyway and the shift key is a very comfortable key to use.

The second plugin used is Stop Player Movement. In the common event bellow you can see I use the plugin commands "StopPlayerMovement" and "AllowPlayerMovement". The idea of that is to freeze the player in place while forcing the player to turn in desired direction.

This might not be the most elegant solution but I actually thought it would work (well, it didn't. Like not at all).

◆Label:StillHoldingShift
◆Plugin Command:StopPlayerMovement
◆If:Button [Shift] is pressed down
◆Comment:---
◆If:Button [Down] is pressed down
◆Set Movement Route:Player (Wait)
: :◇Turn Down

:End
◆Comment:---
◆If:Button
is pressed down
◆Set Movement Route:Player (Wait)
: :◇Turn Left

:End
◆Comment:---
◆If:Button
is pressed down
◆Set Movement Route:Player (Wait)
: :◇Turn Right

:End
◆Comment:---
◆If:Button [Up] is pressed down
◆Set Movement Route:Player (Wait)
: :◇Turn Up

:End
◆Jump to Label:StillHoldingShift

:End
◆Plugin Command:AllowPlayerMovement​


So, any ideas what went wrong, and possibly a solution to what I want to achieve?

 

Bex

Veteran
Veteran
Joined
Aug 2, 2013
Messages
1,389
Reaction score
356
First Language
German
Primarily Uses
RMMV
Remove your Plugins.
Create a Parallel Common Event and Activate its condition switch at game start.
Insert the following Eventcode:
◆If:Button [Shift] is pressed down
◆Comment:---
◆If:Button [Down] is pressed down
◆Set Movement Route:Player (NOOOOOOOOOOOWait)
: :◇Turn Down

:End
◆Comment:---
◆If:Button left
is pressed down
◆Set Movement Route:Player (NOOOOOOOOWait)
: :◇Turn Left

:End
◆Comment:---
◆If:Button right
is pressed down
◆Set Movement Route:Player (Please remove the Wait , i mean noooooo Wait)
: :◇Turn Right

:End
◆Comment:---
◆If:Button [Up] is pressed down
◆Set Movement Route:Player (Noooooo Wait)
: :◇Turn Up
This works, but i dont know if it works like it is for your case in particular.
 

Parallax Panda

Got into VxAce ~2014 and never stopped...
Veteran
Joined
Oct 29, 2015
Messages
990
Reaction score
1,290
First Language
Swedish
Primarily Uses
RMMV
@Meike
Yeah, wow. That sounds like a more polished version of what I wanted but... it doesn't seem to work anymore? doesn't matter how slightly I tap my keys, my characters moves. Is it just me or has the plugin not been updated to the newest version of MV mayhap?

@Bex
Thanks, I'll give it at try at the very least.
 

Meike

||Telling Stories Through Games||
Veteran
Joined
Apr 25, 2015
Messages
102
Reaction score
161
First Language
English
Primarily Uses
RMMV
@Meike
Yeah, wow. That sounds like a more polished version of what I wanted but... it doesn't seem to work anymore? doesn't matter how slightly I tap my keys, my characters moves. Is it just me or has the plugin not been updated to the newest version of MV mayhap?

@Bex
Thanks, I'll give it at try at the very least.
Ohhhh I think I know what's up....I thought it was broke too but then realized it didn't work if your charrie was in auto dash....that could be an issue....sorry I forgot about that.
 

Parallax Panda

Got into VxAce ~2014 and never stopped...
Veteran
Joined
Oct 29, 2015
Messages
990
Reaction score
1,290
First Language
Swedish
Primarily Uses
RMMV
@Meike
Wow, thanks! That was it. I guess I just have to turn off dash all together since it's not needed anyway. Seems to work fine now. In fact, it's close to perfect! :kaoluv:
 

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

Latest Threads

Latest Profile Posts

I've noticed that more videos on YouTube have these segmented bookmark things in the videos themselves. It's nice being able to jump to parts of a video you want, and to have them all clearly labelled.
Why you do this? Now I have to buy the new RPG Maker xD
I've always dreaded planning for my games so I just didn't plan at all. That... didn't work out after all. :kaosigh:
Turns out it can be kind of fun if you keep the scope small and don't take it way too seriously.
well... for the first time in months... I feel like my game is headed towards something again. I finally have it where I won't be drawing battle assets for the rest of the year...

Forum statistics

Threads
99,569
Messages
966,747
Members
131,223
Latest member
aishafer001
Top