In my game, you sleep in an inn, and then the music changes. The area outside the inn AND the lobby of the inn is set to play a different song. I want it so I can use switches or events or something to make it so te music changes for those scenes only after you sleep. How?
Music changing.
RPG Maker VX SupportI'll write this post for more than just one reader to think true;
logically the scene set would follow as this:
scene a > hero enters inn, sleeps > transition > scene b hero wakes up
so this could be done with possibly variables increasing
with song a: [prewalk] then song b would [sleep]
then song c to scene b would be [awakened] so,
ideally it would be done in a way that is made like a cutscene to resume
you'll see this technique in early RPG's as a way to use music as cutscene take-aways
because remember music is to set moods behind the backgrounds
logically the scene set would follow as this:
scene a > hero enters inn, sleeps > transition > scene b hero wakes up
so this could be done with possibly variables increasing
with song a: [prewalk] then song b would [sleep]
then song c to scene b would be [awakened] so,
ideally it would be done in a way that is made like a cutscene to resume
you'll see this technique in early RPG's as a way to use music as cutscene take-aways
because remember music is to set moods behind the backgrounds
So I would use variables and them cnageing would change the music? I was thinking maybe switches, but how would I set the variables up?
Don't set the music for the maps itself (Inn lobby and outside Inn)
1. Create a Common Event (with a trigger None). Inside this common event:
2. For your Innkeeper event (or whichever event you use to make the player "rest at the inn"):
4. When you are completely leaving Outside Inn Map, Turn OFF Switch "Slept At Inn"
1. Create a Common Event (with a trigger None). Inside this common event:
Code:
Condition Branch --> If Switch "Slept At Inn" is ON
Play BGM Song A
Else
Play BGM Song B
2. For your Innkeeper event (or whichever event you use to make the player "rest at the inn"):
- Turn ON Switch "Slept At Inn"
- Call Common Event above
4. When you are completely leaving Outside Inn Map, Turn OFF Switch "Slept At Inn"
the concept of:
variable storage to set scene
you would set the scene and bgm with a variable that would rise (increase in number) for that action.
so for example you can store your variable named "Inn - BGM cuts." which when condition of variable is met [Inn - BGM cuts = 2; plays "Hero Music 2"] and if you're really program savvy then you can run if conditions that reinforce variable programming [ If Inn BGM cuts = 3; stop "Hero Music 2" Fade In "Hero Music 3. ] this way your programming a variable that is "Mickey Mousing ((music and sound effects)) only specific to that scene." that meets the condition of that scene or scenario events uniquely. Sorry if I don't explain it the super programmer professional way. I just know this much from people who were interviewed on old Hollywood DVD's that do movie programming and sound ADR.
so for example you can store your variable named "Inn - BGM cuts." which when condition of variable is met [Inn - BGM cuts = 2; plays "Hero Music 2"] and if you're really program savvy then you can run if conditions that reinforce variable programming [ If Inn BGM cuts = 3; stop "Hero Music 2" Fade In "Hero Music 3. ] this way your programming a variable that is "Mickey Mousing ((music and sound effects)) only specific to that scene." that meets the condition of that scene or scenario events uniquely. Sorry if I don't explain it the super programmer professional way. I just know this much from people who were interviewed on old Hollywood DVD's that do movie programming and sound ADR.
After Thought:
Ideally - you would use the same variable set as both a storage and control caller to setting the scene stage. From one action to the next.
making the variable the on-stage control.
Also ideally, I wouldn't over-store on the same variables, compartmentalizing how the variables can store the same sets of data such as BGM at different loop points can also be effective data management. So giving you a more fluid open flow of variable scene setters with backtracks to control. It can be stored in quicker manner and make quicker recall flow. Then the variables can keep consistent to flow with each other
[example if variable var_HeroInn =
var_Inn1stTime, Play BGM Song A. If var_HeroInn ≠ var_Inn1stTime, Play BGM Song F.]
I mean this technique as I am explaining it isn't needed to be done this way with RPG Maker, but the idea comes from how older game RPG's cutscenes were done cut away style with music that had to be called to each scene and action fast which was done by manual programming. Except it wasn't this simplified as I'm saying it but it was done to max memory storage while fitting enough whole scenes into the chip.
making the variable the on-stage control.
Also ideally, I wouldn't over-store on the same variables, compartmentalizing how the variables can store the same sets of data such as BGM at different loop points can also be effective data management. So giving you a more fluid open flow of variable scene setters with backtracks to control. It can be stored in quicker manner and make quicker recall flow. Then the variables can keep consistent to flow with each other
[example if variable var_HeroInn =
var_Inn1stTime, Play BGM Song A. If var_HeroInn ≠ var_Inn1stTime, Play BGM Song F.]
I mean this technique as I am explaining it isn't needed to be done this way with RPG Maker, but the idea comes from how older game RPG's cutscenes were done cut away style with music that had to be called to each scene and action fast which was done by manual programming. Except it wasn't this simplified as I'm saying it but it was done to max memory storage while fitting enough whole scenes into the chip.
I will try that. Thx!
Ok, so I'm bad at this and
am just attaching a bunch of screen shots. Tell me what I did wrong.
@LostAndFoundRPG , please avoid double posting (or quad posting I suppose), as it is against the forum rules. You can use the "Edit" function on your posts to add additional information you've forgotten or respond to multiple people. You can review our forum rules here. Thank you.
It’s not a giga big deal, I promise!
Screenshot one: you'll want to uncheck Auto-Change BGM. (Is that the outside Inn map?)
Screenshot two: looks perfect
Screenshot three: I can't tell what this is.
Screenshot two: looks perfect
Screenshot three: I can't tell what this is.
- Where is your innkeeper event?
- Where is your transfer player event when the player enters / leaves the Inn?
- Where is your transfer player even when the player completely leaves tine outside Inn area.
Perhaps you could use my BGMSwitches script and common event. It's always been available for VX!
As the name implies, it does use consecutive global switches.
As the name implies, it does use consecutive global switches.
Screen shot 1: that is the main area in the dock town
Screen shot 2: Cool
screen shot 3: oops wrong screen shot. I will send other screenshots later I promise.
Screen shot 2: Cool
screen shot 3: oops wrong screen shot. I will send other screenshots later I promise.
Original thread: https://forums.rpgmakerweb.com/threads/music-changing.162154/