PDA

View Full Version : Displaying text using the canvas



hammer
06-02-2004, 11:29 AM
i have a problem, when i use some TImageSprite and then try to display some text via the canvas the text goes behind the sprite image how can i aviod this ?!?!?!!??!?!?
some kind of layering ???

doggo18
06-02-2004, 01:01 PM
I assume you call the Drawing routine of your sprites somewhere in your DXTimer event, I think the call was SpriteEngine.Draw or something? Anyway, if you do the writing of your text after the drawing of the sprites (but still before the DXDraw.Flip!) you should be OK. :)

hammer
06-02-2004, 05:43 PM
thanks it worked like a charm