Ok. I've got this HP bar from the mr.mo ABS:
So it makes a HP bar that fills from left to right. Now I want it to fill from right to left.
Hope somebody can help.
alias trick_draw_actor_hp draw_actor_hp
def draw_actor_hp(actor, x, y, width = 144)
# Calculate if there is draw space for MaxHP
if width - 32 >= 108
hp_x = x + width - 108
flag = true
elsif width - 32 >= 48
hp_x = x + width - 48
flag = false
end
width = hp_x - x
width += $game_temp.in_battle ? 50 : 100
# Draw HP
draw_gradient_bar(x, y + 16, actor.hp, actor.maxhp, HP_BAR, width, 8)
trick_draw_actor_hp(actor, x, y, width)
end
So it makes a HP bar that fills from left to right. Now I want it to fill from right to left.
Hope somebody can help.