Page 1 of 1

SOLVED Getting 'Black'screen

Posted: Tue Jun 04, 2013 12:06 am
by Lazzaro
Okay, get ready for noobness. I am a beginner and I'm having some issues in a project that is barely a scratch. Here goes the code
love.graphics.setColor(0, 0, 0, 255 )
love.graphics.rectangle("fill", 0, 400, 800, 300 )
So, I'm using that as the first basis of my game's floor (it's a platformer)
When the game starts it will load the background, that floor correctly at first... but then BLACKSCREEN
I know the error is in those lines because if I make that setColor to any color, let's say green the Blackscreen will become a greenscreen
So, I dont know if thats a bug or something. If it is I just warned you guys I guess
Any helps please? Sorry for being such a noob... i cry every night cause of it
(Any grammar mistakes? I'm not american or Brittish. don't grammar hammer me, pls)

Re: Getting 'Black'screen

Posted: Tue Jun 04, 2013 12:13 am
by Jasoco
We need more. Is that code in love.draw?

Re: Getting 'Black'screen

Posted: Tue Jun 04, 2013 5:59 am
by Plu
It'd help if you could include a .love file for us so we can see the rest of the code. That's quite a big rectangle, but it shouldn't cover everything. Do you have a camera or something that's focussing on the wrong area maybe?

Re: Getting 'Black'screen

Posted: Tue Jun 04, 2013 7:44 am
by bartbes
You need to set the color to white again, afterwards, probably.

Re: Getting 'Black'screen

Posted: Tue Jun 04, 2013 7:45 am
by Plu
That's actually a good guess... if you don't set the color back to white the game will draw everything in pitchblack, even images and text and such.

Re: Getting 'Black'screen

Posted: Tue Jun 04, 2013 11:10 am
by Lazzaro
Hey it's me thanks to bartbes and Plu I got to correct it
sorry for anything
thanks a lot guys.
bartbes wrote:You need to set the color to white again, afterwards, probably.
Plu wrote:That's actually a good guess... if you don't set the color back to white the game will draw everything in pitchblack, even images and text and such.
:awesome: