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.

Draconius GO
Reply
 
Thread Tools
  #1    
Old July 5th, 2012 (11:20 AM). Edited July 5th, 2012 by IceGod64.
IceGod64's Avatar
IceGod64 IceGod64 is offline
In the Lost & Found bin!
     
    Join Date: Oct 2008
    Location: Castelia City
    Age: 29
    Gender: Male
    Nature: Naive
    Posts: 623
    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,189
      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.
      __________________
      Go to the Pokémon Essentials Wiki

      | Downloads | Tutorials | Fangames |
      | All Animations Project |

      Follow me on Twitter: @maruno42


      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
        In the Lost & Found bin!
           
          Join Date: Oct 2008
          Location: Castelia City
          Age: 29
          Gender: Male
          Nature: Naive
          Posts: 623
          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,189
            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
            __________________
            Go to the Pokémon Essentials Wiki

            | Downloads | Tutorials | Fangames |
            | All Animations Project |

            Follow me on Twitter: @maruno42


            Reply With Quote
            Reply

            Quick Reply

            Join the conversation!

            Create an account to post a reply in this thread, participate in other discussions, and more!

            Create a PokéCommunity Account

            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 8:50 AM.