• 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!
  • 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] Foe Party balls staying in battle

  • 22
    Posts
    9
    Years
    • Seen Apr 4, 2018
    Hello, I want to make the opponent trainer's party balls stay throughout the battle. Which part of the script should I change for that? I have tried a lot but couldn't find the right place to stop it sliding off screen..
     
    Last edited by a moderator:
    In the PokeBattle_Scene is the animation class TrainerFadeAnimation. Play around with the sprites it manipulates:

    Code:
        @sprites["partybarfoe"].x+=8
        @sprites["partybarfoe"].opacity-=12
        for i in 0...6
          @sprites["enemy#{i}"].opacity-=12
          @sprites["enemy#{i}"].x+=8 if @frame>=i*4
        end
     
    OK I've managed to keep it throughout the battle but they don't update after every round(which means after a pokemon is knocked out, the ball sprites won't change). Is there a way to do that?
     
    Back
    Top