(resolved) MV character keeps turning on dual attacks in YEP action sequences.

catwizard69

Villager
Member
Joined
Jul 27, 2018
Messages
16
Reaction score
0
First Language
English
Primarily Uses
RMMV
Hi people, my problem is with the basic attack sequence I have. When the character has a pair of daggers, for example, their basic attack hits twice. When I use the MOTION ATTACK: user, the character Sprite hits normally on the first swing , but then turns around and swings behind him for his second attack. I've remedied this a bit with the face user forward function, but the Sprite still turns around for just a second before facing forward again. Does anyone know of a better fix for this?
 

lordosthyvel

Veteran
Veteran
Joined
Jun 11, 2012
Messages
61
Reaction score
29
First Language
Swedish
Primarily Uses
RMMV
Hi people, my problem is with the basic attack sequence I have. When the character has a pair of daggers, for example, their basic attack hits twice. When I use the MOTION ATTACK: user, the character Sprite hits normally on the first swing , but then turns around and swings behind him for his second attack. I've remedied this a bit with the face user forward function, but the Sprite still turns around for just a second before facing forward again. Does anyone know of a better fix for this?

Post the entire action sequence and a picture of your skill page here.
 

ramza

Lunatic Coder
Veteran
Joined
Jan 28, 2013
Messages
776
Reaction score
487
First Language
English
Primarily Uses
RMMV
The problem is that the target is flinching when the first strike happens, and your dual wield action sequence is telling the actor to move user: target, front, or something similar.

When you use that command, the plugin does a check to see which direction the user should be facing before moving, as far as I can tell, it bases this on the bounding box of both the target and the user. What happens, is a check is made to see if the rightmost edge of the target is within the leftmost edge of the attacker. Because the flinch only moves a few pixels, it shows the right edge as being inside the attacker's sprite, which is the cutoff for it deciding that to move back to front, the battler is moving to the right, even though it isn't, and faces him right.

If the target didn't move slightly, a move would be unnecessary, so your battler would stand still.
 

catwizard69

Villager
Member
Joined
Jul 27, 2018
Messages
16
Reaction score
0
First Language
English
Primarily Uses
RMMV
The problem is that the target is flinching when the first strike happens, and your dual wield action sequence is telling the actor to move user: target, front, or something similar.

When you use that command, the plugin does a check to see which direction the user should be facing before moving, as far as I can tell, it bases this on the bounding box of both the target and the user. What happens, is a check is made to see if the rightmost edge of the target is within the leftmost edge of the attacker. Because the flinch only moves a few pixels, it shows the right edge as being inside the attacker's sprite, which is the cutoff for it deciding that to move back to front, the battler is moving to the right, even though it isn't, and faces him right.

If the target didn't move slightly, a move would be unnecessary, so your battler would stand still.
Thanks!! I'll try messing around with how much the enemies flinch when hit to see if I can fix it that way.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,849
Messages
1,016,977
Members
137,563
Latest member
cexojow
Top