You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers. No questions about C++ programming or topics which are answered in the tutorials!
does anyone know how to get gui elements to show up on the screen when a map is loaded. For example, when you are in the game the players energy bar or health bar? Please, if you know how i would appreciate all the help i can get.
*thanks*
Are you sure you have to delete them? I thought that me_go_fast wanted to just put GUIElements in front of the map. Therefore I think you don't have to delete anything , just do take care of the order of drawing. Am I wrong?
Would they in that case also be updated by themselves? As me_go_fast wantet life-bars and such, they will have to be updated, and if you don't dele them, I'm afraid you'll just draw them on each other, resulting in bad performance, but I'm not sure though.
Firemorph wrote:Would they in that case also be updated by themselves? As me_go_fast wantet life-bars and such, they will have to be updated, and if you don't dele them, I'm afraid you'll just draw them on each other, resulting in bad performance, but I'm not sure though.
That's what I encountered...
Now I fixed the healthbar using driver->draw2DRectangle which seems to be working. But I'll need GUI elements that need to be redrawn...
I just added some GUI-elements myself which needs updating all the time, however they don't!
The text is just drawn top of the old, resulting in an unreadable mess.