Having intense trouble making a sniper mini game. [demo map included]

Good day.
As the title suggests, I am trying to create a sequence in my game which the player preforms a sniping mission.

Essentially, I change the players appearance to a red dot, and add a picture to create the scope effect.
The actual "sniping" part is done by placing the patrolling enemies "Below characters", and when interacted with "Action button", the sound effects kick in and they fall over and die.
And when ever you hit an enemy(and they die), a "shot" event triggers, making all other enemies flee the player for 3 seconds with extreme speed (by enabling a parallel process event page), then returning back to their original state.
This is what it looks like:

螢幕擷取畫面 (1129).png


All of that above worked just fine, but it would be boring if you just aimed on the enemies and shoot, since you cannot miss.
So I made an attempt at making a "miss" function, after a few tries, I ended up filling up the ground tiles with events that when triggered by the "Action button" it would still fire the rifle, trigger the "shot" event, but not hit any enemies(thus consuming ammo and alerting enemies). It is set to "Through" so that the enemies can walk on them, or else they become invisible walls(for the npcs).

Looks like this(I only covered half the map):
(The "miss" events inside the fenced area around the red book are set to "Above characters", while the others are set to "Below characters". explained below.)
螢幕擷取畫面 (1125).png


And from here, endless issues began to accrue(exaggeration, I guess, but it took me a few hours and still couldn't find a way to fix it) .

If I set the "miss" events to "Below characters", I simply cannot hit the enemies anymore and only trigger the "miss" event.
If I set the "miss" events to "Above characters", two things happen:
1, SOME ENEMIES get shot twice(triggered both the "miss" event and their own), fall over and die.
2,The enemy doesn't get hit at all, but still triggering the "miss" event".
(Doesn't matter if the enemies are on "Below characters" or "Above characters", they end either 1 or 2 no matter what.)
(For obvious reasons, I cant set it to "Same as characters", or the player wouldn't be able to move at all.)

What I truly do not understand is all the enemies are the same, I copied them from one enemy, yet despite them being on the same layer(above/under), only SOME enemies can get shot, and some just can't(even after restarting the game, deleting them and re-pasting them in different locations).

Feels like a bug, glitch or just something that isn't suppose to go wrong going wrong.

So, if anyone can understand all that above, I would really apricate any opinions on how to fix it, or achieve similar effects with a different method.
If it is difficult to understand but you have the time or interest, there is a link of the download to the map at the bottom, the only thing related to this thread is all in the 2 maps, I DID NOT use any scripts on this section.

Few pictures of the events and enemies:
Enemy basic state:
螢幕擷取畫面 (1126).png


Enemy after the "shot" event(3,4,5 are death animations, the custom move route is move away from player 5 times):
螢幕擷取畫面 (1127).png


Ground
"miss" events:
螢幕擷取畫面 (1128).png

If you have gotten this far, I must say a thank you for your time, this means a lot.

To "play" the map, you must open both chests to acquire the rifle and 15 bullets, and interact with the opened red book.
To leave the sniping area, simply interact with the closed red book.
Everything outside the snowing maps is irrelevant.

To open it in the editor, simply click "Open project" on the top left and select "Game.rvproj2" from the "Test1" folder you got from extracting the "test1.exe".


[Map download]
Hello, I created this kind of mini game too, but your mini game is more complex with
that ammo feature, it's really cool! Based on your post, I understand that you want to create
a "miss" if the NPC is not reaching the targeted tile, right? If it was me, Instead of creating
two seperate events (miss event and target NPC), I suggest you to create something like this :

Capture12121212.JPG


The good thing about this setup, you don't have to create these "miss" events on the map,
which, I believe, is causing that "priority" issue, and if player missed the shot, the NPC could reset
himself without bothering the other events. This setup needs to be revamped to your liking though.

Hope this helps solving the trouble. 🙂
i did something similiar but what i did is use scripts to get the player and events x and y, then see if they match and trigger an event... i haven't messed with ace for a little while now so i may be a little rusty and i didnt try with a button press but it might look something like this
Screenshot (113).png

this would just be a parallel process running the whole time you wouldn't need all the miss events either you could just place it in the else for the button press i believe.
switching the switch on and off keep from double press or the event triggering twice, at least it did for me. i'm not sure but turning it on at the end might not be necessary.
The re
Hello, I created this kind of mini game too, but your mini game is more complex with
that ammo feature, it's really cool! Based on your post, I understand that you want to create
a "miss" if the NPC is not reaching the targeted tile, right? If it was me, Instead of creating
two seperate events (miss event and target NPC), I suggest you to create something like this :

View attachment 253942

The good thing about this setup, you don't have to create these "miss" events on the map,
which, I believe, is causing that "priority" issue, and if player missed the shot, the NPC could reset
himself without bothering the other events. This setup needs to be revamped to your liking though.

Hope this helps solving the trouble. 🙂
Thank you! I will give this a try 😀
i did something similiar but what i did is use scripts to get the player and events x and y, then see if they match and trigger an event... i haven't messed with ace for a little while now so i may be a little rusty and i didnt try with a button press but it might look something like this
View attachment 253946
this would just be a parallel process running the whole time you wouldn't need all the miss events either you could just place it in the else for the button press i believe.
switching the switch on and off keep from double press or the event triggering twice, at least it did for me. i'm not sure but turning it on at the end might not be necessary.
Thanks! I will also give this a try!
So I implemented a similar concept in MV but I used a plugin that allows much more use of the mouse (TDDP Mouse System). Then I set variables to track the x and y coordinates of the mouse. When a player clicks anywhere on the screen, the X and Y coordinates are saved and compared to the X and Y coordinates of all events on the map. Then I have conditional checks to give the player a score based on how close to the center of the event they had clicked, and if its greater than 3 squares away, to have no effect at all. That way, I've got everything consolidated into very few events - one parallel script that is constantly tracking mouse movement and saving variables when clicked, and individual events for targets.

I know you're using VXA, so I'm not sure if you can replicate this exactly, but if you're interested, I can share all the event setup here.
So I implemented a similar concept in MV but I used a plugin that allows much more use of the mouse (TDDP Mouse System). Then I set variables to track the x and y coordinates of the mouse. When a player clicks anywhere on the screen, the X and Y coordinates are saved and compared to the X and Y coordinates of all events on the map. Then I have conditional checks to give the player a score based on how close to the center of the event they had clicked, and if its greater than 3 squares away, to have no effect at all. That way, I've got everything consolidated into very few events - one parallel script that is constantly tracking mouse movement and saving variables when clicked, and individual events for targets.

I know you're using VXA, so I'm not sure if you can replicate this exactly, but if you're interested, I can share all the event setup here.
Thanks for the idea! Sadly it doesn't work so well in my case(or just VXA), since I have to set up checks for every individual enemy(quite a lot of them), and the nature of VXA not being able to detect the X and Y at the same time(resulting if the cursor is on the same X OR same Y it "hits").

But I've found a way to fixed the issue in this post now, so all good. Thanks anyway!

Original thread: https://forums.rpgmakerweb.com/threads/having-intense-trouble-making-a-sniper-mini-game-demo-map-included.155183/