Go Back   The PokéCommunity Forums > Creative Discussions > Game Development > Pokémon Essentials
Reload this Page [Question] Play a sound on the Title Screen?

Notices
For all updates, view the main page.

Pokémon Essentials All questions and discussion about Pokémon Essentials, the Pokémon game kit for RPG Maker XP, go in here. Also contains links to the latest downloads and the Essentials Wiki.



Reply
 
Thread Tools
  #1    
Old July 5th, 2012 (11:20 AM). Edited July 5th, 2012 by IceGod64.
IceGod64's Avatar
IceGod64 IceGod64 is offline
My imagination.
 
Join Date: Oct 2008
Location: Castelia City
Age: 27
Gender: Male
Nature: Naive
Posts: 604
I've ben doing some work on the Title Screen in Pokémon Essentials for my project, and I have a question regarding using it.

How can one properly play a sound from the Title Screen? I'm trying to make it play using pbSEPlay and it's not playing anything no matter what SE I try to use.

I originally had a second another question, but I resolved it trying to reproduce the error and post it.

Edit: For reference, I'm using pbSEPlay in def closeSplash.
__________________

Reply With Quote
  #2    
Old July 5th, 2012 (01:00 PM).
Maruno's Avatar
Maruno Maruno is offline
Lead Dev of Pokémon Essentials
Moderator
 
Join Date: Jan 2008
Location: England
Posts: 4,249
Try this (in def openSplash):

Code:
    @pic.name="Graphics/Titles/"+@splash
    @pic.moveOpacity(15,0,255)
    @pic.moveSE(15,"Audio/SE/yourSEfile")
    @pic2.name="Graphics/Titles/start"
    @pic2.moveOpacity(15,0,255)
I recognised moveOpacity from the Poké Ball-throwing animation in battle, and I remembered that it also involved sound effects. A quick adaptation gave me the above code. I've not tested it, but I think it'll play the SE once as soon as the title screen has faded in.
__________________
Reply With Quote
  #3    
Old July 5th, 2012 (01:10 PM). Edited July 5th, 2012 by Dying Light.
Dying Light's Avatar
Dying Light Dying Light is offline
Pegasus Knight
 
Join Date: Jun 2011
Location: Exiled
Gender: Male
Nature: Hardy
Posts: 367
Quote originally posted by Maruno:
Try this (in def openSplash):

Code:
    @pic.name="Graphics/Titles/"+@splash
    @pic.moveOpacity(15,0,255)
    @pic.moveSE(15,"Audio/SE/yourSEfile")
    @pic2.name="Graphics/Titles/start"
    @pic2.moveOpacity(15,0,255)
I recognised moveOpacity from the Poké Ball-throwing animation in battle, and I remembered that it also involved sound effects. A quick adaptation gave me the above code. I've not tested it, but I think it'll play the SE once as soon as the title screen has faded in.
I just tested it in Scene_Intro and it worked. All I did was change the code between line 47 and line 57. Then, I specified the SE to play. In my testing, I simply set a Pokémon cry. Now, when you press "C", it plays it.

EDIT: Yep, it works like a charm. IceGod64, Maruno's code is what you want. By itself, it plays a cry when you reach the titlescreen. With a little editing, you can set it so that it only plays when you press Enter or C.
__________________
None

“Our only limits are the ones we place on ourselves.”
Reply With Quote
  #4    
Old July 5th, 2012 (01:47 PM).
IceGod64's Avatar
IceGod64 IceGod64 is offline
My imagination.
 
Join Date: Oct 2008
Location: Castelia City
Age: 27
Gender: Male
Nature: Naive
Posts: 604
Thanks Maruno, it worked great!

I forgot about that, Thank you!
__________________

Reply With Quote
  #5    
Old July 5th, 2012 (01:49 PM).
Maruno's Avatar
Maruno Maruno is offline
Lead Dev of Pokémon Essentials
Moderator
 
Join Date: Jan 2008
Location: England
Posts: 4,249
To have the SE play when closing the title screen, use this in def closeSplash:

Code:
    onCTrigger.clear
    onUpdate.clear
    @pic.moveSE(0,"Audio/SE/yourSEfile")
    @pic.moveOpacity(15,0,0)
    pictureWait
__________________
Reply With Quote
Reply
Quick Reply

Sponsored Links
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are UTC -8. The time now is 10:26 PM.