Solved drawbox vs tall panel

Question that is answered or resolved.

Bloodbane

Well-known member
I'm using drawbox function to draw bar for charge meter. It works great but only on level with regular sized panel. With tall panel, drawbox function draw the box somewhere (I can't figure out where)

So the question is how to set drawbox function properly in levels with tall panel?
 
Maybe it has something to do with y camera offset or player base altitude ?

You could try using drawboxtoscreen to see if it gives the same results.
 
Ack! it turns out I set wrong value in z parameter of drawbox function, no wonder the drawn box is placed behind the panel
Oh well, good news is I don't need to replace that funciton with drawboxtoscreen
 
Back
Top Bottom