• 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.

[Scripting Question] How to change backsprite size

87
Posts
8
Years
    • Seen Jul 24, 2016
    Hi everyone out there. I´d like to change the backsprite size in pokemon essentials. I´ve already found this in PokeBattle_Scene

    Code:
    if @frame>5 && @PokemonBattlerSprite.zoom_x<1.0
         @PokemonBattlerSprite.zoom_x+=0.1
         @PokemonBattlerSprite.zoom_y+=0.1
         @PokemonBattlerSprite.zoom_x=1.0 if @PokemonBattlerSprite.zoom_x > 1.0
         @PokemonBattlerSprite.zoom_y=1.0 if @PokemonBattlerSprite.zoom_y > 1.0
         pbSpriteSetCenter(@PokemonBattlerSprite,@spritex,0)
         @PokemonBattlerSprite.y=@spritey+(@endspritey-@spritey)*@PokemonBattlerSprite.zoom_y
       end
       if @PokemonBattlerSprite.tone.gray<=0 && @PokemonBattlerSprite.zoom_x>=1.0
         @animdone=true
       end

    I think I have to change all 1.0 values to what I wanted and I did it. It won´t work at all because it´s true that the backsprite in battle has changed size but when I attack it goes to the default size

    If there is anything I have to do in addition to this I´d appreciate any help.
     
    Last edited:
    Back
    Top