How to make Attack animation outside battle?

I want to make my actor do attack animation on dialogue. It's a dialogue between the Actor and an NPC, actor wants to kill NPC so he slashes NPC with a sword outside battle mode.

This is what I did
1111.jpg
2222.jpg
3333.jpg

4444.jpg
5555.jpg
7777.jpg


And this is what I got... You can see it on this video file. I'm not sure if this is the right way to upload it or not.





Problem!!!
When I tricker Atk right, Actor does attack Right side animation. No matter how much I tricker it.
When I tricker Atk Left, Actor does attack Left side animation only 2-3 times, then actor disappears! and some time Actor attacks the right side for a millisecond and turns to attack the left side.

What's the problem with this? How should I fix it? Any plugin should I use?
Thank you very much.
SOLVED! SOLVED! SOLVED! SOLVED! SOLVED!
After many experiments on this and that, and all around another way to make it work. I finally came back to this and figure it out.

PROBLEM
RPG maker engine got confused about the sprite section. As you can see we can add 3*4 sprites. If we don't fill them full with sprites and in some conditions like fast swapping or changing conditions as I did, the RPG maker may get confused and show you the empty slot of that sprite sheet or even pick a random sprite on the sheet!! Which is not good!

SOLUTION
1. Filled the sprite sheet with sprites! If it's a 3*4 sheet, fill it with 3*4. No empty slot!
2. DO NOT USE A SINGLE SHEET WITH A DIFFERENT DIRECTION. Normally 1 sheet will contain a character with 4 directions. That's fine with normal circumstances but not on this. You have to fill it with only one direction on one sheet. If you want more direction, you have to do it on another sheet.



I hope it will be more or less helpful to others facing this issue.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-attack-animation-outside-battle.151422/