Playing piano

Wasserteufel

Batman
Veteran
Joined
Sep 24, 2017
Messages
74
Reaction score
7
First Language
German, English
Primarily Uses
RMVXA
Hey folks!

I have a question!

I wanna make it possible to play the piano but stop when the player presses the key to stop or go back.

But my commands don't really work well.. xD

Can you pls. help me? =)


 

Unislayer

Warper
Member
Joined
Sep 29, 2014
Messages
2
Reaction score
1
First Language
Awesomesauce
Primarily Uses
Your problem here is that your conditional branch for stopping it, is set to only happen if the piano switch isn't on, move the conditional branch for stopping the piano to directly after play bgm.
 

Heirukichi

Veteran
Veteran
Joined
Sep 24, 2015
Messages
1,421
Reaction score
596
First Language
Italian
Primarily Uses
RMVXA
@Unislayer That's not the problem actually. What that conditional branch does is just turning off the switch, it won't stop any music from being played. Moving the control switch command there will just turn the switch off immediatly after the musc starts.

@Wasserteufel in your event you have nothing that stops your BGM. What you lack is a BGM Fadeout command (page 2 ov event commands). If you don't use that one to stop your music then it will loop.
 
Last edited:

Wasserteufel

Batman
Veteran
Joined
Sep 24, 2017
Messages
74
Reaction score
7
First Language
German, English
Primarily Uses
RMVXA
@Unislayer That's not the problem actually. What that conditional branch does is just turning off the switch, it won't stop any busic from being played. Moving the control switch command there will just turn the switch off immediatly after the musc starts.

@Wasserteufel in your event you have nothing that stops your BGM. What you lack is a BGM Fadeout command (page 2 ov event commands). If you don't use that one to stop your music then it will loop.
Oh! Okay..

I'll try chanching that.

Thanks a lot!
 

Heirukichi

Veteran
Veteran
Joined
Sep 24, 2015
Messages
1,421
Reaction score
596
First Language
Italian
Primarily Uses
RMVXA
You are welcome!

Just one more thing: you should start your music in the 1st page of your event. The 2nd page is set as Autorun. You don't need the engine to check that line (play BGM) every single frame.
It is an unrequired operation that you don't need (and you probably don't want). I am kinda sure that the engine still plays the music as intended but it is not how it is meant to be. When the player decides to play the piano, before turning the switch on. start your BGM, then use the 2nd page to handle the condition to stop it.


EDIT:
A much better way to do it is to create your conditional branch (the one where the player decides to start playing the piano) like this:

1 - Play BGM
2 - Display a Message like "Soft and calm music starts coming out of the piano...". Here you can even add something to tell the player that if the message window is closed the music also stops. That's entirely up to you.
3 - Fadeout BGM

This way the music automatically stops when the player closes the message window but keeps playing until that happens.
 
Last edited:

Wasserteufel

Batman
Veteran
Joined
Sep 24, 2017
Messages
74
Reaction score
7
First Language
German, English
Primarily Uses
RMVXA
You are welcome!

Just one more thing: you should start your music in the 1st page of your event. The 2nd page is set as Autorun. You don't need the engine to check that line (play BGM) every single frame.
It is an unrequired operation that you don't need (and you probably don't want). I am kinda sure that the engine still plays the music as intended but it is not how it is meant to be. When the player decides to play the piano, before turning the switch on. start your BGM, then use the 2nd page to handle the condition to stop it.
Yes. That sounds plausibel!

I will test it.

Normaly I try to avoid autoruns or parallel processes except for cut scenes.
 

Heirukichi

Veteran
Veteran
Joined
Sep 24, 2015
Messages
1,421
Reaction score
596
First Language
Italian
Primarily Uses
RMVXA
I edited my previous post ading a little suggestion. Try it and see if it fits your situation. In my opinion that's the best way of doing it.
 

Wasserteufel

Batman
Veteran
Joined
Sep 24, 2017
Messages
74
Reaction score
7
First Language
German, English
Primarily Uses
RMVXA
I edited my previous post ading a little suggestion. Try it and see if it fits your situation. In my opinion that's the best way of doing it.
Your EDIT idea sounds awesome!

I'll just do that! :)

Thanks!!
 

Llareian

Jack of All Trades, Master of None
Veteran
Joined
Jan 26, 2017
Messages
604
Reaction score
1,421
First Language
English
Primarily Uses
RMMV
2 - Display a Message like "Soft and calm music starts coming out of the piano...". Here you can even add something to tell the player that if the message window is closed the music also stops. That's entirely up to you.
Just as an aside, this method has the added bonus of being handicap accessible - for any deaf or hard of hearing players you might have!
 

Wasserteufel

Batman
Veteran
Joined
Sep 24, 2017
Messages
74
Reaction score
7
First Language
German, English
Primarily Uses
RMVXA
You are welcome!

Just one more thing: you should start your music in the 1st page of your event. The 2nd page is set as Autorun. You don't need the engine to check that line (play BGM) every single frame.
It is an unrequired operation that you don't need (and you probably don't want). I am kinda sure that the engine still plays the music as intended but it is not how it is meant to be. When the player decides to play the piano, before turning the switch on. start your BGM, then use the 2nd page to handle the condition to stop it.


EDIT:
A much better way to do it is to create your conditional branch (the one where the player decides to start playing the piano) like this:

1 - Play BGM
2 - Display a Message like "Soft and calm music starts coming out of the piano...". Here you can even add something to tell the player that if the message window is closed the music also stops. That's entirely up to you.
3 - Fadeout BGM

This way the music automatically stops when the player closes the message window but keeps playing until that happens.
It works perfectly!!

Thank you!

You opend my mind about creating different conditional branches now! =)

Thanks alot!
 

Heirukichi

Veteran
Veteran
Joined
Sep 24, 2015
Messages
1,421
Reaction score
596
First Language
Italian
Primarily Uses
RMVXA
I am glad to hear that. Good luck with your events!

If you anything else feel free to contact me whenever you want.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!
one bad plugin combo later and one of my followers is moonwalking off the screen on his own... I didn't even more yet on the new map lol.
time for a new avatar :)

Forum statistics

Threads
106,018
Messages
1,018,358
Members
137,803
Latest member
andrewcole
Top