Need to clear the screen

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
lilpaladin21
Prole
Posts: 3
Joined: Fri May 16, 2014 3:00 pm

Need to clear the screen

Post by lilpaladin21 »

I do not know how to clear the screen.
User avatar
CrackedP0t
Citizen
Posts: 69
Joined: Wed May 07, 2014 4:01 am
Contact:

Re: Need to clear the screen

Post 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
/人 ◕‿‿◕ 人\
Here, have an umlaut. Ö
User avatar
josefnpat
Inner party member
Posts: 955
Joined: Wed Oct 05, 2011 1:36 am
Location: your basement
Contact:

Re: Need to clear the screen

Post 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.
Missing Sentinel Software | Twitter

FORCIBLY IGNORED.
<leafo> when in doubt delete all of your code
<bartbes> git rm -r *
<bartbes> git commit -m "Fixed all bugs"
<bartbes> git push
User avatar
BoopDeePoop
Prole
Posts: 39
Joined: Sun Dec 30, 2012 4:15 am

Re: Need to clear the screen

Post 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.
User avatar
T-Bone
Inner party member
Posts: 1492
Joined: Thu Jun 09, 2011 9:03 am

Re: Need to clear the screen

Post 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.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 6 guests