Dodge mechanic

link12

Veteran
Veteran
Joined
May 18, 2014
Messages
63
Reaction score
7
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,952
Reaction score
7,465
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
7
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
7
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,952
Reaction score
7,465
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,600
Reaction score
884
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
7
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 Profile Posts



I've been experimenting with improved memory management again, which allowed me to include items to increase player path length. These are both 44 grid spaces long, and stable. :LZSexcite:
I FINALLY DID IT! 5 years making my very first game and I just officially released it on STEAM..... OMG..... I can say I finished a game! The feelings!!!!!
Stream will be live shortly! I am going to be playing some Among Us! Feel free to drop by!
Ami
tv program always get the ratings (it's the reason why drama series has 1000+ episode),also full and nonsense of censorship (weird blur, a scene getting cut because the unconvenient viewer,but it unconvenient to me either. you never see what the original is)

i know the reason is to take cover the viewer from the negative thing,but i just laughing and mocking of them that they're always suck :guffaw:
Star Chart Idea - Just something I am working on.

Forum statistics

Threads
104,460
Messages
1,006,444
Members
135,966
Latest member
Kleik
Top