Page 1 of 1
Need to clear the screen
Posted: Wed Jun 04, 2014 6:41 pm
by lilpaladin21
I do not know how to clear the screen.
Re: Need to clear the screen
Posted: Wed Jun 04, 2014 6:48 pm
by CrackedP0t
Would you mind being more specific?
If you dont want to draw something, then you can just not put it in the love.draw() function.
Like this:
Code: Select all
function love.draw()
if not love.keyboard.isDown(" ") then love.graphics.rectangle("fill",20,20,100,175) end
end
Re: Need to clear the screen
Posted: Wed Jun 04, 2014 7:00 pm
by josefnpat
Not sure what you're trying to do, but if you want to "clear the screen" take a look at
love.graphics.clear.
Re: Need to clear the screen
Posted: Sat Jun 07, 2014 4:48 am
by BoopDeePoop
josefnpat wrote:Not sure what you're trying to do, but if you want to "clear the screen" take a look at
love.graphics.clear.
Think he means removing all images and graphics from the screen.
Re: Need to clear the screen
Posted: Sat Jun 07, 2014 5:32 am
by T-Bone
Just to be even more clear: the screen clears itself. Every time love.draw runs, you start with a blank (black) screen.