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

[PBS Question] Battle Sprite Position

38
Posts
8
Years
    • Seen Aug 10, 2021
    Hello everyone!

    I added the Gen6 style sprites to my game, but some of them are uncentralized, pendind too much to left or right.

    Is there any way to reposition the X coordinate of the mons in the Sprite Positioner. All I know is that there is a way only to alter de Y coordinate, but not de X.
     

    WolfPP

    Spriter/ Pixel Artist
    1,309
    Posts
    5
    Years
  • Hello everyone!

    I added the Gen6 style sprites to my game, but some of them are uncentralized, pendind too much to left or right.

    Is there any way to reposition the X coordinate of the mons in the Sprite Positioner. All I know is that there is a way only to alter de Y coordinate, but not de X.

    Check your 'PokeBattle_SceneConstants' script.

    Code:
      # Coordinates of the centre bottom of the player's battler's sprite
      # Is also the centre middle of its shadow
      PLAYERBATTLER_X   = 128
      PLAYERBATTLER_Y   = Graphics.height - 96
      PLAYERBATTLERD1_X = PLAYERBATTLER_X - 48
      PLAYERBATTLERD1_Y = PLAYERBATTLER_Y
      PLAYERBATTLERD2_X = PLAYERBATTLER_X + 32
      PLAYERBATTLERD2_Y = PLAYERBATTLER_Y + 16
    
      # Coordinates of the centre bottom of the foe's battler's sprite
      # Is also the centre middle of its shadow
      FOEBATTLER_X      = Graphics.width - 128
      FOEBATTLER_Y      = (Graphics.height * 3/4) - 140
      FOEBATTLERD1_X    = FOEBATTLER_X + 48
      FOEBATTLERD1_Y    = FOEBATTLER_Y
      FOEBATTLERD2_X    = FOEBATTLER_X - 32
      FOEBATTLERD2_Y    = FOEBATTLER_Y - 16

    D1 and D2 is double battle.
     
    1,403
    Posts
    10
    Years
    • Seen Apr 29, 2024
    There must be a better way, but maybe you could edit the sprites themselves to change where they're centered?
     
    1,805
    Posts
    7
    Years
  • There is a position via debug. Have you not ran them through autopositioner? Otherwise you'll either do it manually via PBS or via the Debug function.
     
    38
    Posts
    8
    Years
    • Seen Aug 10, 2021
    Check your 'PokeBattle_SceneConstants' script.

    Code:
      # Coordinates of the centre bottom of the player's battler's sprite
      # Is also the centre middle of its shadow
      PLAYERBATTLER_X   = 128
      PLAYERBATTLER_Y   = Graphics.height - 96
      PLAYERBATTLERD1_X = PLAYERBATTLER_X - 48
      PLAYERBATTLERD1_Y = PLAYERBATTLER_Y
      PLAYERBATTLERD2_X = PLAYERBATTLER_X + 32
      PLAYERBATTLERD2_Y = PLAYERBATTLER_Y + 16
    
      # Coordinates of the centre bottom of the foe's battler's sprite
      # Is also the centre middle of its shadow
      FOEBATTLER_X      = Graphics.width - 128
      FOEBATTLER_Y      = (Graphics.height * 3/4) - 140
      FOEBATTLERD1_X    = FOEBATTLER_X + 48
      FOEBATTLERD1_Y    = FOEBATTLER_Y
      FOEBATTLERD2_X    = FOEBATTLER_X - 32
      FOEBATTLERD2_Y    = FOEBATTLER_Y - 16

    D1 and D2 is double battle.


    I use the EBS system, so I just run the spite positioner, and the some sprites is like the Acceolgor on the image below.

    Is there a way to edit the gif directly instead editing the sprite frame by frame?
     

    Attachments

    • capture001.png
      capture001.png
      21.2 KB · Views: 14
    Back
    Top