Page 1 of 1

movement code

Posted: Sat Apr 13, 2019 2:08 pm
by adudedeveloper
:awesome: Finally! here is some code for movement :3
if love.keyboard.isDown("up") then
py = py - 1
end
if love.keyboard.isDown("down") then
py = py + 1
end
if love.keyboard.isDown("left") then
px = px - 1
end
if love.keyboard.isDown("right") then
px = px + 1
end

Re: movement code

Posted: Sun Apr 14, 2019 4:02 pm
by veethree
thx

Re: movement code

Posted: Sun Apr 14, 2019 6:44 pm
by zorg
:o: