How do I event an Alarm? Halp!

yo! i have need of one of you awesome RMMV wizards to cast some magic and tell me how to create a secret base Intruder Alarm event. please?

scenario is this.... variable goes off for sneaking around the enemy base, and BAM! alarms go off, baddies show up. mayhem and havoc ensues... or maybe something like a star trek "red alert" alarm...


i want to make the screen flash red every few seconds,
i have a decent "ME" buzzer that i want to loop and play on top of the BGM,
and i want it to play without interrupting the BGM.

currently when i try to do all of this.... the buzzer plays, but it interrupts the BGM instead of playing on top of. Also, i cant figure out the screen flash at all. so far, I've only been able to make the screen flash red and stay there...

does that all make sense?
You only need a single parallel process event for that (notice the event trigger and condition).
event.png

This event will continue looping as long as the condition are meet, that's why you need the switch, so you can turned it ON / OFF. This only work on the map you put the event on. You might want to copy this event in case you want it to run in another map.

Plus, audio file you put in ME will automatically turn down BGM volume when it plays. You need to put it on SE if you want it to run on top of the BGM.

note : The screenshot is from VXA. I have problem with my MV, but the event should be the same in RM.
@Kuro DCupu Ok, so the "flash screen" event, right below "tint screen", isn't necessary? Also, how would I ensure that both the alarm and the tint on/off would have a delay between their respective happenings, instead of an incessant buzz; and that the tint screen would be... slower. less like a damage tile flash, and more like one of those red alert lights?

Thanks for the quick reply and the tip about the ME/SE.

Edit: I figured it out! the event ended up with three pages for red screen flash:
page1: tint towards red 90frames, tint back to normal for 90 frames, three times. then self switch.
upload_2017-11-16_15-47-19.png

page2: set movement route WAIT for 180 frames (3 seconds), then self switch off and back to page 1.
upload_2017-11-16_15-48-18.png

Page 3: Set to do nothing and turn off when initial variable from page 1 reaches a certain point.
upload_2017-11-16_15-53-38.png



I had to do the same thing in a separate event for the SE... the timing is off, but it still looks and sounds decent 🙂 thanks for your help! and hope this helps anyone else who may stumble along this.
Just for your future reference, on your 2nd event page you can use a Wait command that isn't inside of the Move Route command (the regular Wait command is on the 2nd page of the event commands on the top right).

It works exactly the same as the one within the Move Route (as far as I can tell) but it might be easier to read when you're looking through the events in your game.
Anyways, good that it's working and cool idea for a "sneak" mission of some kind.

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-event-an-alarm-halp.87295/