simple DrawText()
Posted: Wed Jun 28, 2006 10:12 am
this code draws the score. however, when the score has changed (for example, from 0 to 1), the '0' remains there and the '1' is simply drawn on top of it. how do i stop this so that the old score is deleted??
Code: Select all
StartDrawing(SpriteOutput(0))
Locate(500+SpriteWidth(4)+6, 10)
FrontColor(255, 154, 0)
DrawingFont(UseFont(0))
DrawingMode(1)
DrawText(Str(pScore))
StopDrawing()