• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Our weekly protagonist poll is now up! Vote for your favorite Trading Card Game 2 protagonist in the poll by clicking here.
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Stopping the pokemon and HP box from moving up and down?

korjamer

Pixel Artist
  • 19
    Posts
    14
    Years
    • Seen Jun 3, 2016
    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!
     
    Simple find in Pokebattle_actualscene this class PokemonBattlerSprite < RPG::Sprite

    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
     
    Back
    Top