Original Source
- Original title: Having intense trouble making a sniper mini game. [demo map included]
- Original author: ItsHofer
- Original date: February 22, 2023
- Source thread: https://forums.rpgmakerweb.com/threads/having-intense-trouble-making-a-sniper-mini-game-demo-map-included.155183/
- Source forum path: Game Development Engines > Legacy Engine Support > RPG Maker VXAce Support
Summary
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.
Archived First Post
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:
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.)
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:
Enemy after the "shot" event(3,4,5 are death animations, the custom move route is move away from player 5 times):
Ground "miss" events:
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]
Downloads / Referenced Files
Log in, then follow the RPG Maker Developers Group to see these download links.
Log in to downloadCreator 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...