GIF Pokemon Attack
View Single Post
April 4th, 2013 (12:33 PM).
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
code contain the @sprites
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(
) 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
pbAnimationCore. There you'll see a chunk of code which looks like
animplayer.playing? animplayer.update pbGraphicsUpdate pbInputUpdate
In there, with all the other updates, you just stick in pbFrameUpdate(
), and the sprites will animate during attack animations.
With all this said, again, I will refer you to a
I made a while back.
Joined Dec 2008
View Public Profile
Visit Luka S.J.'s homepage!
Find all posts by Luka S.J.
Find threads started by Luka S.J.
Ignore Posts by Luka S.J.