The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Create & Discover > Game Development > Pokémon Essentials
Reload this Page Play a sound on the Title Screen?
Sign Up Rules/FAQ Daily Battle Blogs Mark Forums Read


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: 28
Gender: Male
Nature: Naive
Posts: 610
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

Relevant Advertising!

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

Code:
    @pic.name="Graphics/Titles/"[email protected]
    @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 (1: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: 368
Quote:
Originally Posted by Maruno View Post
Try this (in def openSplash):

Code:
    @pic.name="Graphics/Titles/"[email protected]
    @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 (1:47 PM).
IceGod64's Avatar
IceGod64 IceGod64 is offline
My imagination.
 
Join Date: Oct 2008
Location: Castelia City
Age: 28
Gender: Male
Nature: Naive
Posts: 610
Thanks Maruno, it worked great!

I forgot about that, Thank you!
__________________

Reply With Quote
  #5    
Old July 5th, 2012 (1:49 PM).
Maruno's Avatar
Maruno Maruno is offline
Lead Dev of Pokémon Essentials
 
Join Date: Jan 2008
Location: England
Posts: 5,144
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 GMT -8. The time now is 7:03 PM.


Style by Nymphadora, artwork by Sa-Dui.
Like our Facebook Page Follow us on Twitter © 2002 - 2016 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2016 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.

Acknowledgements
Use of PokéCommunity Assets
vB Optimise by DragonByte Technologies Ltd © 2016.