Title Bgs

DMIgames

Veteran
Veteran
Joined
Nov 18, 2014
Messages
71
Reaction score
26
First Language
english
Primarily Uses
Hello everyone!

I am in need of a really simple plugin/script that plays a bgs of choice on the title screen, i tried adding it in myself in the core MV files but it likes to reset the set bgs when I change the title bgm in any fashion.

If anyone is up to this that would be great ^_^

Example:
rpg_scene.js

Code:
Scene_Title.prototype.playTitleMusic = function() {
    AudioManager.playBgm($dataSystem.titleBgm);
   
    //Custom BGS Add
    AudioManager.playBgs($dataSystem.titleBgs);
   
    AudioManager.stopMe();
    AudioManager.stopSe();
};
 

Maliki79

Veteran
Veteran
Joined
Mar 13, 2012
Messages
692
Reaction score
267
First Language
English
Primarily Uses
N/A
The basic problem here is that $database.titleBgs is not defined anywhere.

Try using this instead:

Code:
Scene_Title.prototype.playTitleMusic = function() {
    AudioManager.playBgm($dataSystem.titleBgm);
   console.log($dataSystem.titleBgm);
    //Custom BGS Add
    var titleBgs = {
        name: "Clock",
        volume: 100,
        pitch: 100,
        pan: 0,
        pos: 0
    };
    AudioManager.playBgs(titleBgs);
   //End Custom BGS
    AudioManager.stopMe();
    AudioManager.stopSe();
};
I tested with the clock sound, but you can change it to whatever you need.
 

DMIgames

Veteran
Veteran
Joined
Nov 18, 2014
Messages
71
Reaction score
26
First Language
english
Primarily Uses
The basic problem here is that $database.titleBgs is not defined anywhere.
Yeah that's why i was adding it in manually in the system data JSON next to the titleBgm but that's where it kept resetting because like you said it's technically not in there :p tehe

Try using this instead
Works perfectly! Thanks! ^_^
 

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

Latest Threads

Latest Posts

Latest Profile Posts

How do you cure sleep problem? It has been 7 months and it's 3 AM now..
Darn you, Seals! Why do you gotta be so cute when on land?:kaoluv:
So dragonbones getting laggy xD
I even removed the fingers armatures.

Have to remake this guy after crashing ( corrupted file).
:rtear:

Although limited to only this shop for room decorations, I like this aspect for previewing items.

Forum statistics

Threads
100,837
Messages
980,129
Members
132,487
Latest member
AnthonyDewitt
Top