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 April 3rd, 2013 (3:52 AM).
BlIZzART BlIZzART is offline
     
    Join Date: Nov 2012
    Gender: Male
    Posts: 3
    Hi Guys i´m using GIF Pokemon Sprites but when a Pokemon use an attack the Animation stops.
    Can anybody help me with this problem
    Reply With Quote

    Relevant Advertising!

      #2    
    Old April 3rd, 2013 (8:59 AM).
    Pharetra's Avatar
    Pharetra Pharetra is offline
    zzzz
       
      Join Date: Jun 2011
      Age: 21
      Gender: Male
      Posts: 455
      I thought this happened because the sprites aren't refreshed when using an attack. Not sure though, so please correct me if I'm wrong :p
      Reply With Quote
        #3    
      Old April 4th, 2013 (8:46 AM).
      BlIZzART BlIZzART is offline
         
        Join Date: Nov 2012
        Gender: Male
        Posts: 3
        I dont know it but can anybody tell me what i have to do when i want to play the animation like B/W B/W2
        Reply With Quote
          #4    
        Old April 4th, 2013 (12:33 PM).
        Luka S.J.'s Avatar
        Luka S.J. Luka S.J. is offline
        Jealous Croatian
           
          Join Date: Dec 2008
          Location: Croatia
          Age: 24
          Gender: Male
          Nature: Adamant
          Posts: 1,100
          You never simply replace the old sprites with newer, and expect everything to be automagically done. While Pokemon Essentials itself supports GIF images, the battle system wasn't designed to be using them. The reason why at some parts the GIFs animate, and at some they don't: is that some parts of the PokeBattle_ActualScene code contain the @sprites["pokemon#{i}"].update function and others don't. You'd need to find the right places within the Battle System itself where you'd put these updates.

          Using the function pbFrameUpdate(nil) is what you're looking for. This function updates the sprites and the battle boxes of the various Pokemon, now you just have to insert them in the right place. Some are more obvious than others. Just do a quick search for general updates in the battle system, and you'll know where to put them. One of the updates that you were looking for is within def pbAnimationCore. There you'll see a chunk of code which looks like
          Code:
          while animplayer.playing?
            animplayer.update
            pbGraphicsUpdate
            pbInputUpdate
          end
          In there, with all the other updates, you just stick in pbFrameUpdate(nil), and the sprites will animate during attack animations.

          With all this said, again, I will refer you to a post I made a while back.
          __________________

          Reply With Quote
            #5    
          Old April 5th, 2013 (2:02 AM).
          BlIZzART BlIZzART is offline
             
            Join Date: Nov 2012
            Gender: Male
            Posts: 3
            sorry,but im a Newbie in this.I dont understand the Scripting Language and i need a teacher for that.Can anybody tell me easily how i make this.Sorry for that
            Reply With Quote
              #6    
            Old April 5th, 2013 (5:56 AM).
            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
              Quote:
              Originally Posted by BlIZzART View Post
              sorry,but im a Newbie in this.I dont understand the Scripting Language and i need a teacher for that.Can anybody tell me easily how i make this.Sorry for that
              Luka S.J. couldn't have made it easier to understand. He told you exactly what function to put in what places.

              You can't use Essential practically without knowing how to script; what I'd do if I were you is stick to simple stuff for the time being, and expand off of that. It takes a long time, but you need to be able to script to make your game stand out. If something as simple as this is above you, then just remember this thread and come back in the future once you've learned a little about RGSS syntax.

              In other words, don't just take a dive into Aquatic Mine, you need to test the waters first.
              __________________

              Reply With Quote
                #7    
              Old April 6th, 2013 (8:26 PM).
              DarkShadow21's Avatar
              DarkShadow21 DarkShadow21 is offline
              Master of dark fire!!
                 
                Join Date: Dec 2009
                Location: Wheeling, WV, United states
                Gender: Male
                Nature: Mild
                Posts: 55
                I agree with IceGod. If you don't have any experience whatsoever, you need to try to learn bit by bit of how to script with the ruby language which is what Rpg Maker XP uses. You can't properly make a fan game without knowing at least the basics of scripting.
                __________________

                Check out updates of some of the stuff in Pokémon Titanium and Pokemon Chromium on my deviantart http://darkness2118.deviantart.com/
                Reply With Quote
                  #8    
                Old April 14th, 2013 (9:12 AM). Edited April 14th, 2013 by FL.
                FL's Avatar
                FL FL is offline
                Pokémon Island Creator
                   
                  Join Date: Sep 2010
                  Gender: Male
                  Posts: 1,693
                  I partially disagree with IceGod. Essentials was made to isn't necessary for knowing scripting to make a Pokémon simple game. Not everyone is good at scripting, some people is good at Pixel Art, others at music, etc... But, I think that is necessary to know very basic things like "if/else" and "while".

                  If you like customized things (unlike some basic ones), so or you find some scripter to team up, or learn by yourself.

                  Anyway, I suggest to Maruno add this Luka S.J. script to default Essentials.
                  __________________
                  Reply With Quote
                    #9    
                  Old April 14th, 2013 (11:38 AM).
                  Maruno's Avatar
                  Maruno Maruno is offline
                  Lead Dev of Pokémon Essentials
                     
                    Join Date: Jan 2008
                    Location: England
                    Posts: 5,171
                    Quote:
                    Originally Posted by FL . View Post
                    I partially disagree with IceGod. Essentials was made to isn't necessary for knowing scripting to make a Pokémon simple game. Not everyone is good at scripting, some people is good at Pixel Art, others at music, etc... But, I think that is necessary to know very basic things like "if/else" and "while".

                    If you like customized things (unlike some basic ones), so or you find some scripter to team up, or learn by yourself.
                    That's my view of Essentials, yes. You could be able to make a game without once going into the Script Editor. That's not to say you can avoid using scripts, though (you must use things like pbChangePlayer and Kernel.pbSetPokemonCenter and pbAddPokemon), but you can (barely) just get away with some copying of existing scripts. You'll still need to learn how things actually work, though, at least on a conceptual level.


                    Quote:
                    Originally Posted by FL . View Post
                    Anyway, I suggest to Maruno add this Luka S.J. script to default Essentials.
                    So long as someone tells me what to do (either here or in a PM), okay.
                    __________________
                    Go to the Pokémon Essentials Wiki

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

                    Follow me on Twitter: @maruno42


                    Reply With Quote
                      #10    
                    Old April 14th, 2013 (6:50 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
                      Quote:
                      Originally Posted by Luka S.J. View Post
                      You never simply replace the old sprites with newer, and expect everything to be automagically done. While Pokemon Essentials itself supports GIF images, the battle system wasn't designed to be using them. The reason why at some parts the GIFs animate, and at some they don't: is that some parts of the PokeBattle_ActualScene code contain the @sprites["pokemon#{i}"].update function and others don't. You'd need to find the right places within the Battle System itself where you'd put these updates.

                      Using the function pbFrameUpdate(nil) is what you're looking for. This function updates the sprites and the battle boxes of the various Pokemon, now you just have to insert them in the right place. Some are more obvious than others. Just do a quick search for general updates in the battle system, and you'll know where to put them. One of the updates that you were looking for is within def pbAnimationCore. There you'll see a chunk of code which looks like
                      Code:
                      while animplayer.playing?
                        animplayer.update
                        pbGraphicsUpdate
                        pbInputUpdate
                      end
                      In there, with all the other updates, you just stick in pbFrameUpdate(nil), and the sprites will animate during attack animations.

                      With all this said, again, I will refer you to a post I made a while back.
                      Is this what you were asking for Maruno?
                      __________________

                      Reply With Quote
                        #11    
                      Old April 15th, 2013 (8:15 AM).
                      Maruno's Avatar
                      Maruno Maruno is offline
                      Lead Dev of Pokémon Essentials
                         
                        Join Date: Jan 2008
                        Location: England
                        Posts: 5,171
                        I meant specific directions for every change that needs making. I'm not interested in gif battlers, and I don't want to figure things out for myself when someone who actually cares can do the mental work instead.
                        __________________
                        Go to the Pokémon Essentials Wiki

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

                        Follow me on Twitter: @maruno42


                        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 12:02 AM.