Piano sound

hey everyone!
On my project, the player can click on the piano and two choices will be shown: if yes, it will play a piano sound and if no it won't.
The thing is, when they click yes the piano sound will keep playing even when they leave the room. I want the sound to stop the moment they leave the room if that's possible.

Thanks In Advance.

p_1195ic9g11.png

I've moved this thread to MV Support. Thank you.

That's an SE right? Then why won't it stop playing? Is the event set to parallel? :/
That's an SE right? Then why won't it stop playing? Is the event set to parallel? :/
no the event is action button. It will stop if the players clicked again and choose no, but if they didn't it will keep playing even when they go to a different place and that's the problem, I want it to automatically stop the moment they leave the room because not all the players will stop it before leaving.
You could put the stop SE command in the transfer event to leave the room, so that it will stop when the player leaves.
You could put the stop SE command in the transfer event to leave the room, so that it will stop when the player leaves.
thank you so much, It worked :ywink:

Original thread: https://forums.rpgmakerweb.com/threads/piano-sound.107818/