Need to clear the screen
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
-
- Prole
- Posts: 3
- Joined: Fri May 16, 2014 3:00 pm
Need to clear the screen
I do not know how to clear the screen.
- CrackedP0t
- Citizen
- Posts: 69
- Joined: Wed May 07, 2014 4:01 am
- Contact:
Re: Need to clear the screen
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:
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. Ö
Here, have an umlaut. Ö
- josefnpat
- Inner party member
- Posts: 955
- Joined: Wed Oct 05, 2011 1:36 am
- Location: your basement
- Contact:
Re: Need to clear the screen
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
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
- BoopDeePoop
- Prole
- Posts: 39
- Joined: Sun Dec 30, 2012 4:15 am
Re: Need to clear the screen
Think he means removing all images and graphics from the screen.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.
Re: Need to clear the screen
Just to be even more clear: the screen clears itself. Every time love.draw runs, you start with a blank (black) screen.
My game called Hat Cat and the Obvious Crimes Against the Fundamental Laws of Physics is out now!
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 6 guests