Region Music

I have a script. It's a "Region Names" script.

This script allows me to have different map names depending on what region you're in.

If you're in Region 1, it'll say "____ City/Town"

If you're in Region 2, it'll say "Route ___"

The only problem is, the music stays the same the entire time!

Obviously I want the music to change when the player enters a new area!

I've tried setting up events, but the music INSTANTLY changes. I want it to fade out and then fade in to the new music.

So, I tried putting the "Fade out BGM" command in the event, but there's a problem.

I have to put an event on both edges, so if I'm in ___City, and I walk over the event that changes the BGM when you walk back into ___ City, it stops for a second and then plays it again.

I hope you understand, I explained it the best I can.

Long story short, Events don't work.

If you're gonna tell me to use a variable, please tell me the exact way to set that up, I'm still a noob.

Thanks in advance :stache:
Have you tried "Wait X second" after Fade out BGM?
Yes, it doesn't work 😛 I need a script or a variable thing
you can always check the direction of facing so that you'll only change when needed...
Wait, you can set an event so that it only turns on if you're facing a certain direction?? 

Please, oh great one. Tell me your techniques.

Never have I heard of this before o:
You can use Conditional Branches for that... there's an option on the 3rd or 4th page for checking player facing


though if you want it to activate when you are already on that tile (on the wrong direction), and then faced the right one, you might wanna just use Parallel process events for that,


just check if the Player's X and Y is within the ledge, then check facing...
If you don't want conditional Branches there IS a script that works with regions and changing music.

I use it myself, but I can't remember if the music fades or just swaps or not.

< - broken link - >

is the link. Hope that helps.
Region names is old.


Try this one. It supports region names, region music, and also music fading.


http://himeworks.wordpress.com/2014/02/17/map-regions/

Original thread: https://forums.rpgmakerweb.com/threads/region-music.23771/