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
690
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

ESAMarathon on Twitch, now streaming "Eat Girl". Yep, that's the title of a game... Apparently it's a Pacman knockoff.... Which is of course the only logical conclusion one would get from a name like "Eat Girl". :kaopride: I can't believe anybody would think anything else! :kaoback:
Super stoked i just finished my first town in my project, by finished i mean i can always add more decorative aesthetics and the NPCs don't talk yet but the mapping is complete and all the important chess pieces are present!
My brain: Hey, I have an idea how to make the transition to the main story quest in The Wastes more natural!
Me: Good!
My brain: You need to remake the hotel you start out in, it's not realistic enough.
Me: Ok... This was unexpected, but I can do it.
My brain: Now make each hotel floor 5 times as large to match the main part. Oh, you also need to make a bunch of new npcs to fill in the space on these maps.
Me: Crap.
Should be able to release Haxe MV/MZ next weekend.
It look that somehow MZ tracks are messed up (for example battle4 is obviously a theme, castle2 is a ship, ship1 is a scene and so on..). Maybe they just named them after with some ambiguity.

Forum statistics

Threads
100,608
Messages
977,783
Members
132,220
Latest member
lightnvs
Top