Can't replay audio after load

Torqus

Veteran
Veteran
Joined
Aug 2, 2015
Messages
169
Reaction score
26
First Language
English
Primarily Uses
I had this problem for a long time now, I posted this before but there was no solution so now I'm posting it with more things I've discovered.

I'm trying to make a plugin for my game, very simple one, that will load the last saved game after game over instead of taking the player to the title. But no matter what I try, after loading, the BGM wont replay as it does in the Scene_Load, and I don't know why...

The BGM starts again when I move to another map, but it doesn't play after the load of this script in the map, only silence can be heard.

This is the code to load the game in the Gameover screen:

Scene_Gameover.prototype.gotoTitle = function() { this.fadeOutAll(); DataManager.loadGame(DataManager.latestSavefileId()); SceneManager.goto(Scene_Map);};I tried adding everything possible, all the lines of code involving the word "audio" in it.

I tried many times with :
        $gameSystem.onAfterLoad();

but no success.

I'm tired of trying, seems like the only possibility left for me is to redirect the player to the Scene_Load, or creating a new Scene similar to Scene_Load that automatically loads the last save. But that doesn't seem like the correct path.
 
Last edited by a moderator:

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

Latest Threads

Latest Profile Posts

I should realize that error was produced by a outdated version of MZ so that's why it pop up like that
Ami
i can't wait to drink some ice after struggling with my illness in 9 days. 9 days is really bad for me,i can't focus with my shop and even can't do something with my project
How many hours have you got in mz so far?

A bit of a "sparkle" update to the lower portion of the world map. :LZSexcite:
attack on titan final season is airing tomorrow, I'm excited and scared at the same time!

Forum statistics

Threads
105,882
Messages
1,017,230
Members
137,607
Latest member
Maddo
Top