but whats the code to erase drawn text?
Edited by jakethecreator, 08 October 2009 - 05:09 PM.
Posted 08 October 2009 - 05:02 PM
Edited by jakethecreator, 08 October 2009 - 05:09 PM.
Posted 08 October 2009 - 05:05 PM
I know its a simple problem,
but whats the code to erase drawn text?
Posted 08 October 2009 - 05:07 PM
text_drawn=true; //in the create event if(text_drawn==true)draw_text(...) //in the draw event text_drawn=false //in the event where you want to remove the text
Edited by ramses12, 08 October 2009 - 05:08 PM.
Posted 08 October 2009 - 05:08 PM
Posted 08 October 2009 - 05:09 PM
I know its a simple problem,
but whats the code to erase drawn text?
If you are talking about erasing text drawn in the draw event, you must first know that the things drawn in the draw event are cleared and redrawn every step, and so it's not a matter of erasing drawn text, but of not drawing it. You can do this with a variable that you check in the draw event, and draw the text only if the variable is a certain value. Do you understand?
Posted 08 October 2009 - 05:10 PM
0 members, 0 guests, 0 anonymous users