- 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.
Thanks for your time.
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.