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
797
Reaction score
350
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

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,860
Messages
1,017,038
Members
137,568
Latest member
invidious
Top