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,920
Reaction score
7,450
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,920
Reaction score
7,450
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,579
Reaction score
877
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 Posts

Latest Profile Posts

I think I've got my hero designs pretty much finialised ( still got some tweaks. ) In the end it'll be the four outfit colour variants with four different skintones.

I'm a bit conflicted. One the one hand, it's quite visually cool to make bodies of water that the player can interact with by going into it. However obscuring the player character from a gameplay perspective is pretty bad. Hmm... There's the option to make the area around the player visible, but then that kind of defeats the purpose of submerging them. :unsure:
Stream will be live shortly with some Darkest Dungeon! Feel free to drop by!
Another two plugins done! One being an on map grid inventory.
busy with my newborn child, can't even touch pc at all ;_;

Forum statistics

Threads
104,298
Messages
1,005,353
Members
135,812
Latest member
Yagyu_Chan
Top