Game Development Community

GuiBitmap Reveal?

by Chris Norpchen · in Torque Game Engine · 06/26/2004 (7:59 pm) · 3 replies

Is there a way to reveal instead of resize a bitmap interactively?
I want to use a bitmap for something like health (but not health) and have it revealed as it increases but not resize it.
I could use a GuiShape object and just resize but then you just have a colored bar and that looks boring. I would like to have a cool graphic that gets revealed as a variable in the game increases.
Anyone???
It would be much appreciated.
Thanks

#1
06/26/2004 (11:15 pm)
There's no out of the box way of doing it, but you can use dgl bitmap functions to do this. First you would have to modify the healthbar to use bitmaps, and then to resize them from the top using a dgl function that doesn't stretch the bitmap (it's the one used for wrap mode in the GuiBitmapCtrl, I don't remember the name offhand.
#2
06/29/2004 (9:37 am)
Thanks, I'll look into it.
#3
06/29/2004 (2:06 pm)
Have you tried making the bar a consistent size inside another invisible GUI object, and resizing the container object?