well, i'm trying to do a custom HUD, but i have a problem:
instead of using the normal bar, (horizontal), i'm trying to do a vertical bar, but i'm having serius troubles when the bar has to update.
i know how to do it horizontal:
that would make a normal bar, which draws horizontally, but i need it to be vertical,
i don't know if i explain myself...
hope i do...can anyone help me please?
instead of using the normal bar, (horizontal), i'm trying to do a vertical bar, but i'm having serius troubles when the bar has to update.
i know how to do it horizontal:
def draw_hp(actor, x, y)
back_image = RPG::Cache.picture("HP_Back")
cw = back_image.width
ch = back_image.height
src_rect = Rect.new(0, 0, cw, ch)
self.contents.blt(x + 65, y - ch + 30, back_image, src_rect)
image = RPG::Cache.picture("HP_Meter")
cw = image.width * actor.hp / actor.maxhp
ch = image.height
src_rect = Rect.new(0, 0, cw, ch)
self.contents.blt(x + 65, y - ch + 30, image, src_rect)
end
that would make a normal bar, which draws horizontally, but i need it to be vertical,
i don't know if i explain myself...
hope i do...can anyone help me please?