Go Back   The PokéCommunity Forums > Creative Discussions > Game Development > Pokémon Essentials
Reload this Page [Question] Stopping the pokemon and HP box from moving up and down?

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 January 17th, 2012 (03:37 PM).
korjamer's Avatar
korjamer korjamer is offline
Pixel Artist
 
Join Date: Apr 2011
Age: 22
Gender: Male
Nature: Relaxed
Posts: 18
Hi, Does anyone know where in the script pokebattle_actualscene the code for moving the Pokemon and HP box up and down a pixel while you select an attack is? If so, do you know how to disable it and keep the box/Pokemon from moving? I included animated GIF files for the Pokemon sprites in my game and it looks really bad animating AND bouncing up and down.
Any ideas? I'd be really grateful for some help. Thanks in advance!
Reply With Quote
  #2    
Old January 26th, 2012 (11:48 AM).
venom12's Avatar
venom12 venom12 is offline
Pokemon Crystal Rain Relased
 
Join Date: Sep 2006
Age: 24
Gender: Male
Nature: Adamant
Posts: 524
Send a message via Windows Live Messenger to venom12
Simple find in Pokebattle_actualscene this class PokemonBattlerSprite < RPG:prite

then in this code
Code:
def update
   @frame+=1
   @updating=true
   if ((@frame/9).floor&1)==1 && @selected==1 # When choosing commands for this Pokémon
     @spriteYExtra=2
   else
     @spriteYExtra=0
   end
  
 end
change @spriteYExtra=2 to @spriteYExtra=0

This is for pokemon sprite now for hp box

in class pokemondatabox search for def update

search for this

Code:
 if ((@frame/10).floor&1)==1 && @selected==1 # When choosing commands for this Pokémon
     self.x=@spriteX
     self.y=@spriteY+2
   elsif ((@frame/5).floor&1)==1 && @selected==2 # When targeted or damaged
     self.x=@spriteX
     self.y=@spriteY+2
and both self.y=@spriteY+2 change to self.y=@spriteY or self.y=@spriteY+0

hope i help
Reply With Quote
  #3    
Old January 27th, 2012 (06:27 PM).
korjamer's Avatar
korjamer korjamer is offline
Pixel Artist
 
Join Date: Apr 2011
Age: 22
Gender: Male
Nature: Relaxed
Posts: 18
Wow, that was pretty easy! Thank you!
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 UTC -8. The time now is 09:42 AM.