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

Chaging the x posistion of battlers?

  • 773
    Posts
    14
    Years
    • UK
    • Seen Dec 29, 2024
    Does anyone know how to change the x position of battlers in the battle screen?
    I've made the window bigger and can change the y position but i can't seem to find anything that actually changes the x position.
    This is for single and double battles

    Thanks
     
    I've just finished fiddling with the y positions of battlers, actually. That was a bit of a mess. The x positions are scattered around a little, all in the script section PokeBattle_ActualScene.

    For player-owned Pokémon, change the variable @spritex in the class PokeballPlayerSendOutAnimation.

    For enemy trainer-owned Pokémon, change the variable @spritex in the class PokeballSendOutAnimation.

    For wild Pokémon, search for @sprites["pokemon1"].x and @sprites["pokemon3"].x. Note that these positions are where wild Pokémon start before sliding on-screen, so think of the number here as being relative to the battlebase (which it is, indirectly). The battlebase itself slides along until it touches the right-hand side of the screen (as per break if @sprites["enemybase"].x>=Graphics.width-256).

    They're much easier to play with than the y coordinates, at least.
     
    I've just finished fiddling with the y positions of battlers, actually. That was a bit of a mess.

    Can you tell me how i can change the y-position of sprites in a trainer battle? Because my sprites are lower in the trainer battles than in the wild battles.
    Changing @spritey makes nothing.
    Thanks
     
    Having the same problem as Tao. My opponent's pokemon are always too high and so far my fiddling hasn't worked. The x-position is always fine though.
     
    Back
    Top