I want to check the current playing Me. I dug around in the code a bit and found that there is a variable called AudioManager._currentMe; however when I try to log it to the console it just prints undefined while the Me is clearly playing the background. I want to do this because as soon as the Me is done playing I want to play a BGM. Anyone have any idea what I am doing wrong here?
JavaScript:
(function() {
var checkForMeEndID;
BattleManager.checkForMeEnd = function() {
console.log($gameSystem.victoryMe());
//console.log(Game_System.victoryMe());
};
BattleManager.playVictoryMe = function() {
AudioManager.playMe($gameSystem.victoryMe());
console.log(AudioManager._currentMe); //this is undefined. Why?
checkForMeEndID = setInterval(this.checkForMeEnd, 1);
};
})();