• 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.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Akari, Selene, Mint, Solana - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • 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

  • 78
    Posts
    9
    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