• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • 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
13
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!
     

    venom12

    Pokemon Crystal Rain Relased
    476
    Posts
    17
    Years
    • Age 33
    • Seen Dec 28, 2023
    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