Page 1 of 1

LOVE window problems

Posted: Fri Dec 01, 2017 1:15 pm
by Cacetinho
So I just made this moving cube thing with this code :
function love.load()
x = 0
end

function love.update(dt)
if love.keyboard.isDown("right") then
x = x + 1
end
end

function love.draw()
love.graphics.rectangle("fill", x, 10, 100, 100)
end

It's supposed to work fine, but whenever I press the right or left key nothing happens, but if I press one of the keys and then move the program's window the cube is in another position(also when I open the program without running a game there is only a still image not an animation), I do believe this is a compatibility problem, does anyone have an idea of how to fix this?(I have Windows 10 64 bits)

Re: LOVE window problems

Posted: Fri Dec 01, 2017 1:16 pm
by Nixola
First things first: what GPU do you have? Are you sure your drivers are up to date?

Re: LOVE window problems

Posted: Fri Dec 01, 2017 1:22 pm
by Cacetinho
My GPU is integrated from my laptop's i3- 4005U, I believe it's the Intel 4400. I haven't checked my drivers in a while, will see if any of them are outdated.

Re: LOVE window problems

Posted: Fri Dec 01, 2017 1:39 pm
by Nixola
I meant your video drivers specifically; you should keep all of them up to date, but only the GPU ones should be relevant to the issue.

Re: LOVE window problems

Posted: Fri Dec 01, 2017 2:01 pm
by Cacetinho
I've updted all of my drivers, still the error persists.

Re: LOVE window problems

Posted: Fri Dec 01, 2017 9:05 pm
by Cacetinho
Thank you for the help, I've managed to fix the problem by formatting my computer and now everything works fine.

Re: LOVE window problems

Posted: Fri Dec 01, 2017 11:16 pm
by Nixola
A bit... Drastic, but I'm glad it ended up working for you