Save Game Saves Music's Play Point

What I  would like  to do is, my game has a Radio station I made for the BGM, and think what I want to do needs JS (Java Script).


What I want to do is, when the player saves the game, the save file remembers the timestamp of where  the Radio BGM was stopped at.


So for an e.g. When the player saves the game the BGM will also gets saved, so when the player reloads this save file the Radio file starts from this point.


So for short, the music doesn't not restart at the beginning, it starts where the player saved last time.


Please, I would love some help.
Are you saving from the menu ? If that's the case, then disable the menu at the start of the scene. Put a Parallel event, where you'll make a Condition "If the Cancel button is pressed", followed by "Save BGM", "Play BGM: None", "Open Menu" and "Replay BGM". When the player save and then reload the game, the BGM should replay at the exact same time.


There's only one downside with this solution, however: The BGM will stop when you're in the menu. If you want to have the BGM in the menu, then you'll need a plugin.
Are you saving from the menu ? If that's the case, then disable the menu at the start of the scene. Put a Parallel event, where you'll make a Condition "If the Cancel button is pressed", followed by "Save BGM", "Play BGM: None", "Open Menu" and "Replay BGM". When the player save and then the game, the BGM should replay at the exact same time.


There's only one downside with this solution, however: The BGM will stop when you're in the menu. If you want to have the BGM in the menu, then you'll need a plugin.



I don't think you understood me.


Another E.G: Let's say the BGM is 02:30 in, and then the player saves the game. When the player reloads the save file, the BGM will start at 02:30 and not at the beginning
I don't think you understood me.


Another E.G: Let's say the BGM is 02:30 in, and then the player saves the game. When the player reloads the save file, the BGM will start at 02:30 and not at the beginning



Don't worry, I perfectly understand. If I remember correctly, "Save BGM" also allows to save the timestamp of the BGM: You can then replay it with "Replay BGM".


Sorry if I wasn't clear enough, english isn't my first language.
Don't worry, I perfectly understand. If I remember correctly, "Save BGM" also allows to save the timestamp of the BGM: You can then replay it with "Replay BGM".


Sorry if I wasn't clear enough, english isn't my first language.



Hey can you give some screenshots please
Hey can you give some screenshots please



Of course! Here you are.

HereYouAre.png
Of course! Here you are.


View attachment 40121



I'm afraid that this is not what I wanted, that is restarting the music to the beginning. It's not saving the duration time and staring it from there.
I'm afraid that this is not what I wanted, that is restarting the music to the beginning. It's not saving the duration time and staring it from there.

Oh? I'm sorry, it worked for me.


You should ask for a plugin, then.
Oh? I'm sorry, it worked for me.


You should ask for a plugin, then.



Oh, I realized now, this is opening a menu up. - Is there away it will open up the save screen instead. (Because I don't want the player to be able to save at anytime 🙂 )
Oh, I realized now, this is opening a menu up. - Is there away it will open up the save screen instead. (Because I don't want the player to be able to save at anytime 🙂 )

Of course! If you want the player to save by using the ESC key, then just change "Open Menu Screen" with "Open Save Screen". If you want to player to be able to save with an event, then just do this :

SaveScreen.png
Of course! If you want the player to save by using the ESC key, then just change "Open Menu Screen" with "Open Save Screen". If you want to player to be able to save with an event, then just do this :


View attachment 40122





Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/save-game-saves-musics-play-point.63433/