Dodge mechanic

link12

Veteran
Veteran
Joined
May 18, 2014
Messages
63
Reaction score
6
First Language
English
Primarily Uses
RMMV
I have the yanfly's button common events plugin for the button part, but how do I keep the player facing up or down whilst dodging to the left or right and how can I prevent the player from spamming it without adding a long wait time?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
30,701
Reaction score
7,363
First Language
German
Primarily Uses
RMMV
the first part is to turn direction fix on while moving and off after that.

as for the second part, that depends on how exactly you made your events and what you want to happen, so please give a screenshot of the event commands and a better description.
 

link12

Veteran
Veteran
Joined
May 18, 2014
Messages
63
Reaction score
6
First Language
English
Primarily Uses
RMMV
Is this how it's supposed to look?
 

Attachments

Bex

Veteran
Veteran
Joined
Aug 2, 2013
Messages
1,492
Reaction score
408
First Language
German
Primarily Uses
RMMV
Delete the 5 Frame Wait. The rest should be fine.
 

link12

Veteran
Veteran
Joined
May 18, 2014
Messages
63
Reaction score
6
First Language
English
Primarily Uses
RMMV
That was a bad example, I actually want it to be in any direction not just to the right.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
30,701
Reaction score
7,363
First Language
German
Primarily Uses
RMMV
you need to give us a better description.
if it is supposed to be able to go in multiple directions, then how is the computer going to determine which direction? randomly? because the computer can't read your or the players mind.

and what do you want to happen if the player tries to spam the button? I asked that before because without knowing what should happen we can't tell you how to code it.
 

ShadowDragon

Veteran
Veteran
Joined
Oct 8, 2018
Messages
2,391
Reaction score
793
First Language
Dutch
Primarily Uses
RMMV
if you want all direction, use condtional branch.
and use scriptcall when the player pressed left, right, up or down.
than the move route as above (wthout waitframe) and it should work.

but still, you need something to trigger the common event so it doesn't always
run that, switch is ON and turn it OFF on the end when not needed.

but it might be more complext, which is better if you hold the button "SHIFT" or "CTRL"
so you can dodge, but than again, is this on map dodge only?
 

link12

Veteran
Veteran
Joined
May 18, 2014
Messages
63
Reaction score
6
First Language
English
Primarily Uses
RMMV
@Andar When I just leave direction fix on I can move in any direction forever, but when I add the direction fix off it cancels it out and I want the player to stop without a frame so the player can't spam it.
 
Last edited:

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

Latest Threads

Latest Posts

Latest Profile Posts

I'm making MAGIC!
aww I am sad but happy for brackeys to decide to pursue something new but seing brackeys ending is so sad ;w;
Now RPG Maker has brought him here. He will never be rid of his need for it. He hates and loves the RPG Maker, just as he hates and loves himself. Featherbrain's life is a sad story. Yes, Featherbrain, he was called. Before the RPG Maker found him. Before it drove him mad.
Really struggling with XP animations but my game deserves my best.
I think the characters are really too short. Should at least add a little more
Just the legs should be longer.

Forum statistics

Threads
102,926
Messages
996,020
Members
134,380
Latest member
Marcussss
Top