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

[PBS Question] Battle Sprite Position

  • 38
    Posts
    9
    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.
     
    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.
     
    There must be a better way, but maybe you could edit the sprites themselves to change where they're centered?
     
    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.
     
    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

    • [PokeCommunity.com] Battle Sprite Position
      capture001.png
      21.2 KB · Views: 16
    Back
    Top