movement code

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
adudedeveloper
Prole
Posts: 1
Joined: Sat Apr 13, 2019 2:02 pm

movement code

Post 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
User avatar
veethree
Inner party member
Posts: 875
Joined: Sat Dec 10, 2011 7:18 pm

Re: movement code

Post by veethree »

thx
User avatar
zorg
Party member
Posts: 3436
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:

Re: movement code

Post by zorg »

:o:
Me and my stuff :3True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 43 guests