Hiding or Erasing Font.Draw
Author |
Message |
MasterCard
|
Posted: Sat Sep 05, 2015 9:38 am Post subject: Hiding or Erasing Font.Draw |
|
|
This is my code so far
%Mouse Detection
loop
Mouse.Where(mouseX, mouseY, mouseClick) %365, 430
if mouseY <=140 and mouseY >=80 and mouseX >= 365 and mouseX <=430 then
Font.Draw ("Hello World", 300, 30, font, red)
delay (1000)
else
end if
end loop
I want it so that when on hover, you see hello world (which happens)
But when off hover (else) I dont want to see "Hello World." I want Hello world replaced with nothing! |
|
|
|
|
|
Sponsor Sponsor
|
|
|
Insectoid
|
Posted: Sat Sep 05, 2015 11:03 am Post subject: RE:Hiding or Erasing Font.Draw |
|
|
There's 2 ways to do this. You could just draw the text again in the background color, which would effectively erase it, or you can just erase everything with cls every loop and re-draw only the things you want to show. |
|
|
|
|
|
|
|