• 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 next favorite protagonist poll is now up, this time for the Almia region from Pokémon Ranger 2! This poll is only lasting 2 days, so don't forget to cast your vote for your favorite protagonist!
  • 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.

Changing Battle Status Image Coordinates

pkmn.master

Hobbyist Game Developer
  • 299
    Posts
    16
    Years
    I believe that I am overlooking it, but where is the line of code in the scripts that gives the x and y coordinates of the battle status image (SLP, FRZ, BRN, etc.) that appears over the HP/EXP box for the player?
     
    PokeBattle_ActualScene, line 735:

    Code:
        if @battler.status>0
          self.bitmap.blt(@spritebaseX+[COLOR=Red]24[/COLOR],[COLOR=Green]36[/COLOR],@statuses.bitmap,
             Rect.new(0,(@battler.status-1)*16,44,16))
        end
    X coordinate, Y coordinate. Leave the @spritebaseX part alone.
     
    PokeBattle_ActualScene, line 735:

    Code:
        if @battler.status>0
          self.bitmap.blt(@spritebaseX+[COLOR=red]24[/COLOR],[COLOR=green]36[/COLOR],@statuses.bitmap,
             Rect.new(0,(@battler.status-1)*16,44,16))
        end
    X coordinate, Y coordinate. Leave the @spritebaseX part alone.

    Thanks, Maruno! I got the coordinates correct for the player's hp box now, but I see that this moves both the player and the opponents status icon. Is it possible to be able to move the opponent's separately?
     
    What else do we know that is in a different place in the battle box depending on whether it's the player's Pokémon or a foe's Pokémon? The shininess star, perhaps?
     
    Back
    Top