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

Chaging the x posistion of battlers?

772
Posts
13
Years
    • UK
    • Seen May 7, 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
     

    Maruno

    Lead Dev of Pokémon Essentials
    5,286
    Posts
    16
    Years
    • Seen May 3, 2024
    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.
     

    Tao

    5
    Posts
    15
    Years
    • Seen yesterday
    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
     

    Maruno

    Lead Dev of Pokémon Essentials
    5,286
    Posts
    16
    Years
    • Seen May 3, 2024
    Be more specific. What are "my sprites"?
     
    2
    Posts
    12
    Years
    • Seen Mar 6, 2012
    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