yarock
15-12-2006 00:02:40
hi, im working with betagui, and is really good, but i have a problem, how can i do a HP( a character life bar) with betaGUI?.. already only use it for menus.. i hope somebody can help, or giveme some advices
thanks
betajaen
15-12-2006 00:47:46
It would be easier, and more efficient just to use an overlay for a health bar.
yarock
15-12-2006 01:42:38
ok betajen, so, going to ogre forums, thnx
Naka_kun
18-09-2008 01:24:21
hi, i'm currently also working on a major project, and i know using overlays are simple, however, due to my lack of knowledge on how to actually make a health bar properly using overlays, is there any way someone could help me with this because my health bar keeps scaling towards the center.
here:
' Display the Player's Health Bar
PlayerHealthBar = Mogre.OverlayManager.Singleton.GetByName("Core/DebugOverlay2")
PlayerHealthBar.Show()
i only show it, and then scale it:
If (inputKeyboard.IsKeyDown(MOIS.KeyCode.KC_0)) Then
PlayerHealthBar.SetScale(PlayerHealthBar.ScaleX - 0.001, 1)
End If
the result goes like this
before:
health bar:
============
after:
health bar:
----> =============
it keeps moving instead of staying stationary
the result i'm looking for is something like
Start :==============
reduce1 :===========
reduce2 :=======
reduce3 :=====
Finish :
Instead of
Start : =============
reduce1 : ==============
reduce2 : =============
reduce3 : ========
Finish :
mcaden
18-09-2008 06:03:35