The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Creative Discussions > Game Development > Pokémon Essentials
Sign Up Rules/FAQ Live Battle Blogs Mark Forums Read

Notices

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
IceGod64's Avatar
IceGod64
My imagination.
 
Join Date: Oct 2008
Location: Castelia City
Age: 26
Gender: Male
Nature: Naive
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.
__________________


Last edited by IceGod64; July 5th, 2012 at 11:26 AM.
Reply With Quote
  #2    
Old July 5th, 2012, 01:00 PM
Maruno's Avatar
Maruno
Lead Dev of Pokémon Essentials
 
Join Date: Jan 2008
Location: England
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
Dying Light's Avatar
Dying Light
Assassin
 
Join Date: Jun 2011
Location: Somewhere cold...
Gender: Male
Nature: Hardy
Quote:
Originally Posted by Maruno View Post
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.
__________________
All that once was, and all that will be...
...will never be the same.

Last edited by Dying Light; July 5th, 2012 at 01:41 PM.
Reply With Quote
  #4    
Old July 5th, 2012, 01:47 PM
IceGod64's Avatar
IceGod64
My imagination.
 
Join Date: Oct 2008
Location: Castelia City
Age: 26
Gender: Male
Nature: Naive
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
Lead Dev of Pokémon Essentials
 
Join Date: Jan 2008
Location: England
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
Minimum Characters Per Post: 25



All times are UTC -8. The time now is 02:25 PM.


Style by Nymphadora, artwork by Sa-Dui.
Like our Facebook Page Follow us on Twitter © 2002 - 2014 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 - 2014 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.