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 » Sat Apr 13, 2019 2:08 pm

: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: 814
Joined: Sat Dec 10, 2011 7:18 pm

Re: movement code

Post by veethree » Sun Apr 14, 2019 4:02 pm

thx

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

Re: movement code

Post by zorg » Sun Apr 14, 2019 6:44 pm

: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: No registered users and 10 guests