Help with event processing a sword breaking things on maps.
BMM_Archive · July 15, 2026
Original Source
- Original title: Help with event processing a sword breaking things on maps.
- Original author: Derek
- Original date: April 19, 2022
- Source thread: https://forums.rpgmakerweb.com/threads/help-with-event-processing-a-sword-breaking-things-on-maps.146886/
- Source forum path: Game Development Engines > Legacy Engine Support > RPG Maker MV Support
Summary
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...
Archived First Post
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.
Downloads / Referenced Files
RPG Maker Web attachments are mirrored locally when available. Other external links remain hosted by their original creator or third-party service.
- Local mirror: 202675-4e819bc15a248c58574b1128e4244025.png
SHA-256:07d5651c7643b81a9af894aa015672da6ffec1ded9684ec62c43fc3f833c3db5
Original attachment URL: https://forums.rpgmakerweb.com/attachments/capture5-png.223595/ - Local mirror: 202668-5e6ee2d8ee1865929f7fd159a969b856.png
SHA-256:1440ff2c15c1221f1ad82b2b6d98dc8db2afa2d56a298f3b463eca5c02c4a7ea
Original attachment URL: https://forums.rpgmakerweb.com/attachments/capture4-png.223588/ - Local mirror: 202669-c1830a361b04d85243acdc300f648aaa.png
SHA-256:4f2a03186623e65e8d248f2ecfb4ee5bdcebf0108ac14e8a9e621183accceca5
Original attachment URL: https://forums.rpgmakerweb.com/attachments/capture3-png.223589/ - Local mirror: 202670-5195151afc43cfb3f643666e986f1949.png
SHA-256:fb8ec421921171ae5a2cab3f89be37e62f33118f37bb41c518562e57335c224e
Original attachment URL: https://forums.rpgmakerweb.com/attachments/capture1-png.223590/ - Local mirror: 202671-ebf6cf0cb627dffa11e0a3a36666e311.png
SHA-256:3f88229605f7e040344025ab501da5d0b148e6bebacd63cf392e9d7d2f42eb8a
Original attachment URL: https://forums.rpgmakerweb.com/attachments/capture2-png.223591/
Referenced Images / Attachments
Creator Claims / Removal
If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.
Replies (0)
No replies yet.
Topic Summary
Loading summary...