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)
LOVE window problems
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Re: LOVE window problems
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
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
Re: LOVE window problems
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
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
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
Re: LOVE window problems
I've updted all of my drivers, still the error persists.
Re: LOVE window problems
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
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
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
Who is online
Users browsing this forum: No registered users and 8 guests