• 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.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • 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.

HP Numbers Behind HP Graphic

  • 4
    Posts
    11
    Years
    • Seen Dec 15, 2024
    I'm using v17.2 and I'm currently editing the PokeBattle_Scene script. I've changed the HP bar to be much taller than default in order to display the HP numbers on top of it, but I've noticed that the HP numbers by default are behind the graphic. I know that the fix is as simple as changing the z index/position of the text but I'm not sure where to go to edit it. I've done various searches through the script, but I can't find anything that makes sense. Anyone have any ideas?

    This is the part of the code I'm looking to display on top of the HP graphic.
    Code:
        # Draw Pokémon's HP numbers
        if @showhp
          hpstring = _ISPRINTF("{1: 2d}/{2: 2d}",self.hp,@battler.totalhp)
          textpos.push([hpstring,@spritebaseX+188,40,true,base,shadow])
        end

    Thanks for your time.
     
    It seems the fix was as simple as moving the draw code behind the graphic code. Just going to leave this here for future reference if anyone needs it.
     
    Back
    Top