• 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!
  • PokéCommunity supports the Stop Killing Games movement. If you're a resident of the UK or EU, consider signing one of the petitions to stop publishers from destroying games. Click here for more information!
  • 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?

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