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

Graphics - Change Pokeemerald Run Animation

  • 2
    Posts
    1
    Years
    • Seen Apr 30, 2024
    I'm making a simple sprite replacement mod, switching out May's sprite.

    However, my custom sprite is wider than May's sprite is (running to the side is 18 pixels wide)

    Below is May's running sprite (144x32, using 16 pixels per sprite), as long as my custom one (168x32, 18 pixels per sprite)

    [PokeCommunity.com] Graphics - Change Pokeemerald Run Animation
    [PokeCommunity.com] Graphics - Change Pokeemerald Run Animation

    When attempting to compile, Ubuntu gives me this error:
    tools/gbagfx/gbagfx graphics/object_events/pics/people/may/running.png graphics/object_events/pics/people/may/running.4bpp -mwidth 2 -mheight 4
    libpng warning: bKGD: invalid index
    The width in tiles (21) isn't a multiple of the specified metatile width (2)
    make: *** [spritesheet_rules.mk:99: graphics/object_events/pics/people/may/running.4bpp] Error 1
    Is there a way to use my sprites as they are?
     
    No. The game only supports sprites of specific sizes and 18 isn't one of them. You'll either have to shrink the width to 16 or increase it to 32 which is the next supported size.
    I increased the size of the sprites (shown below) to 32
    [PokeCommunity.com] Graphics - Change Pokeemerald Run Animation

    The game did compile, however, the sprites are all messed up now, cycling through only half of a wrong sprite

    When running up:
    [PokeCommunity.com] Graphics - Change Pokeemerald Run Animation
    When running down:
    [PokeCommunity.com] Graphics - Change Pokeemerald Run Animation
    When running to the right:
    [PokeCommunity.com] Graphics - Change Pokeemerald Run Animation

    Can't help but notice it only used the first half of the image, i.e. the half it would have used if the sprite was 16 pixels wide. Is there a way to change this and make it use the 32 pixels sprites?
     
    I increased the size of the sprites (shown below) to 32
    View attachment 158841

    The game did compile, however, the sprites are all messed up now, cycling through only half of a wrong sprite

    When running up:
    View attachment 158842
    When running down:
    View attachment 158843
    When running to the right:
    View attachment 158844

    Can't help but notice it only used the first half of the image, i.e. the half it would have used if the sprite was 16 pixels wide. Is there a way to change this and make it use the 32 pixels sprites?
    The game still displays the images as 16x32. You'll need to change the data that determines the sprite's size.

    Here are at least some of the places where the width is defined:

    You can look at how the data of the bike sprites is set up since those are 32x32.
     
    Back
    Top