LOVE window problems

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
Cacetinho
Prole
Posts: 4
Joined: Fri Dec 01, 2017 1:05 pm

LOVE window problems

Post 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)
User avatar
Nixola
Inner party member
Posts: 1949
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: LOVE window problems

Post by Nixola »

First things first: what GPU do you have? Are you sure your drivers are up to date?
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
Cacetinho
Prole
Posts: 4
Joined: Fri Dec 01, 2017 1:05 pm

Re: LOVE window problems

Post 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.
User avatar
Nixola
Inner party member
Posts: 1949
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: LOVE window problems

Post 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.
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
Cacetinho
Prole
Posts: 4
Joined: Fri Dec 01, 2017 1:05 pm

Re: LOVE window problems

Post by Cacetinho »

I've updted all of my drivers, still the error persists.
Cacetinho
Prole
Posts: 4
Joined: Fri Dec 01, 2017 1:05 pm

Re: LOVE window problems

Post by Cacetinho »

Thank you for the help, I've managed to fix the problem by formatting my computer and now everything works fine.
User avatar
Nixola
Inner party member
Posts: 1949
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: LOVE window problems

Post by Nixola »

A bit... Drastic, but I'm glad it ended up working for you
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 145 guests