I hope this is the correct place to ask, but I am having the hardest time figuring out a feature I'm trying to add in my game. I'm also using Yanfly plugins.The player can press a button using YEP_ButtonCommonEvents to swing his sword on the map like Link in Zelda games. I've figured out how to make the animations so that whatever position he's facing he'll swing the sword in the right direction. I'm also trying to make it where you can break pots, boxes, and cut grass when you swing the sword.
However, I've hit a roadblock and cannot figure out a work around. When the player is next to the "object" and swings his sword the pot or box will break, but it also breaks even if the player is facing away from the object or to the side. I'm also using YEP_EventProximity so I can use parallel process so I can use switches to let the game know when the player is swinging the sword and when he is not. I've tried using conditional branches such as ifplayer is facing x and etc but nothing seems to work. All I want is for the pot to break ONLY when the character is facing the pot and swinging his sword. I've attached photos in hopes it illustrates what I'm talking about. Any advice, cretic, or replies will be greatly appreciated!
Note: I also wanted to note this game still uses turn based battles, but I like for the player to be able to swing the sword outside of battle to break pots and kill npcs.

The sprite sheet I use for when the player is swinging his sword outside of battle.

The common event for the player to swing his sword on the map.

Event page for the pot to break

The pot breaks even when facing away from pot.

The only time I want the pot to break when player attacks.
However, I've hit a roadblock and cannot figure out a work around. When the player is next to the "object" and swings his sword the pot or box will break, but it also breaks even if the player is facing away from the object or to the side. I'm also using YEP_EventProximity so I can use parallel process so I can use switches to let the game know when the player is swinging the sword and when he is not. I've tried using conditional branches such as ifplayer is facing x and etc but nothing seems to work. All I want is for the pot to break ONLY when the character is facing the pot and swinging his sword. I've attached photos in hopes it illustrates what I'm talking about. Any advice, cretic, or replies will be greatly appreciated!
Note: I also wanted to note this game still uses turn based battles, but I like for the player to be able to swing the sword outside of battle to break pots and kill npcs.

The sprite sheet I use for when the player is swinging his sword outside of battle.

The common event for the player to swing his sword on the map.

Event page for the pot to break

The pot breaks even when facing away from pot.

The only time I want the pot to break when player attacks.