Hello, I have a sequence in my project where the player can activate a 'shoot' button to 'attack' something at a distance. The player will automatically target the Event within Activation Range, as I don't plan on having the player use their mouse for aiming. The issue I'm running into, however, is that there are multiple events with overlapping Activation Ranges.
I was wondering what the best way would be to implement a "Nearest Target" priority (Clockwise for targets the exact same distance from the player) with Yanfly's Proximity Activation plugin.
As things currently operate, when I'm within range of the two overlapping Events and I press the 'shoot' button, I attack both Events at the same time. My goal is to only attack one at a time.
Additional information: I am also using Galv's Map Projectiles for the visual effects of shooting. It seems Galv's Map Projectiles targets only a single Event even though I'm actually attacking both two Events within range at the same time. Ideally, I want to be able to sync up what Galv's Map Projectiles is targeting with Yanfly's Proximity Activation.
(The left gun on the Mech is invisible because I was in the middle of changing the sprite. The player's gun only shoots at the right turret, but I'm actually hitting both the right and left turret at the same time.)
I'm relatively Mid when it comes to working on plugins. I know just enough to know I'm messing something up, but not enough to know how to resolve every single mistake. I can learn, and Javascript is my main programming language that I'm familiar with. This is also my first Thread that I'm posting on this forum.I hope I'm making it in the correct location. I just realized I should've placed this in Plugin Support, not Request. I have no idea how to change it over.
I was wondering what the best way would be to implement a "Nearest Target" priority (Clockwise for targets the exact same distance from the player) with Yanfly's Proximity Activation plugin.
As things currently operate, when I'm within range of the two overlapping Events and I press the 'shoot' button, I attack both Events at the same time. My goal is to only attack one at a time.
Additional information: I am also using Galv's Map Projectiles for the visual effects of shooting. It seems Galv's Map Projectiles targets only a single Event even though I'm actually attacking both two Events within range at the same time. Ideally, I want to be able to sync up what Galv's Map Projectiles is targeting with Yanfly's Proximity Activation.
(The left gun on the Mech is invisible because I was in the middle of changing the sprite. The player's gun only shoots at the right turret, but I'm actually hitting both the right and left turret at the same time.)
I'm relatively Mid when it comes to working on plugins. I know just enough to know I'm messing something up, but not enough to know how to resolve every single mistake. I can learn, and Javascript is my main programming language that I'm familiar with. This is also my first Thread that I'm posting on this forum.