FANDOM


How to put music on the continue screen
This tutorial was written by DerxwnaKapsyla. Please give credit.
Click here for more tutorials!


This tutorial will show you how to add a song to the Continue screen in your Pokemon Essentials-based Fangame. For those wondering, "Continue Screen" means the menu where you go to press Continue/New Game/Options/Mystery Gift, and the ability to have music on there is a derived idea from the music present on Gold/Silver/Crystal's Continue Screen.

ContinueMusic1-

Example song: 000_1. Mystical Dream ~ Snow or Cherry Petal (Title).mid

Anyways, first step of this is simple: You need to find a song you want to use. Midi, MP3, Ogg, whatever your engine supports will work. Once you find your song, drop it into the BGM folder. For this tutorial, it has to be BGM Folder. 


ContinueMusic2

This is what your script should look like if done right.

The next thing you'll want to do is open your Script Editor and go to the script section called PokemonLoad. Once you're in that section, scroll to line 281, or if you've edited the PokemonLoad section before, do a Ctrl+F search for "def pbStartLoadScreen". Once you find that line, copy this line "pbBGMPlay("Your Song Name Goes Here.ExtentionIfNotMidi")", and paste it right underneath "def pbStartLoadScreen". When that's done, it should look something like the following picture.

After that, you need to make sure the song cuts out properly when you resume the game and start a new one. To do this, Do a Ctrl+F Search for the line that says "elsif cmdContinue>=0 && command==cmdContinue" What you'll need to do is go down to the very first End statement under it, and paste this line "pbBGMFade(0.8)". This will make the music fade when you continue the game. Now, to make it fade when you start a new game, you'll need to do a Ctrl+F search for the line "if cmdNewGame>=0 && command==cmdNewGame". Go down to the second End statement there, and place "pbBGMFade(0.8)" once more. This will make the music fade when you start a new game. For reference, the "0.8" does not have to stay. It's in terms of seconds, so you can alter it how you see for for your game.
ContinueMusic4

If you did this step right, these pictures should match up.

ContinueMusic3

Code for how a New Game would look.






When all is finished, it should look and sound a lot like the following video.

Pokemon Essentials Tutorial Suppliment How to Add Music to the Continue Screen00:40

Pokemon Essentials Tutorial Suppliment How to Add Music to the Continue Screen

Final result

And that's it! You can likely use all this to change the music that plays on the options screen and the Mystery Gift screen. And who knows, maybe if you figure it out, you can have randomized music playing on your title screen.

That's all for now!

- DerxwnaKapsyla

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.