Go Back   The PokéCommunity Forums > Creative Discussions > Game Development > Pokémon Essentials
Reload this Page [Question] GIF Pokemon Attack

Notices
For all updates, view the main page.

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 (03: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
  #2    
Old April 3rd, 2013 (08:59 AM).
Pharetra's Avatar
Pharetra Pharetra is offline
MOM GET THE CAMERA
 
Join Date: Jun 2011
Age: 19
Gender: Male
Posts: 453
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 (08: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
@LukaSJ0
 
Join Date: Dec 2008
Location: Croatia
Age: 22
Gender: Male
Nature: Adamant
Posts: 912
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 (02: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 (05:56 AM).
IceGod64's Avatar
IceGod64 IceGod64 is offline
My imagination.
 
Join Date: Oct 2008
Location: Castelia City
Age: 27
Gender: Male
Nature: Naive
Posts: 604
Quote originally posted by BlIZzART:
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 (08: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
Send a message via Yahoo to DarkShadow21
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 (09: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,482
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 online now
Lead Dev of Pokémon Essentials
Moderator
 
Join Date: Jan 2008
Location: England
Posts: 4,568
Quote originally posted by FL .:
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 .:
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.
__________________
Reply With Quote
  #10    
Old April 14th, 2013 (06:50 PM).
IceGod64's Avatar
IceGod64 IceGod64 is offline
My imagination.
 
Join Date: Oct 2008
Location: Castelia City
Age: 27
Gender: Male
Nature: Naive
Posts: 604
Quote originally posted by Luka S.J.:
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 (08:15 AM).
Maruno's Avatar
Maruno Maruno is online now
Lead Dev of Pokémon Essentials
Moderator
 
Join Date: Jan 2008
Location: England
Posts: 4,568
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.
__________________
Reply With Quote
Reply
Quick Reply

Sponsored Links

You may also like.. (Beta)
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 UTC -8. The time now is 08:53 AM.