Finally! here is some code for movement
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
movement code
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
- zorg
- Party member
- Posts: 3465
- Joined: Thu Dec 13, 2012 2:55 pm
- Location: Absurdistan, Hungary
- Contact:
Re: movement code
Me and my stuff True 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.
Who is online
Users browsing this forum: Bing [Bot], Google [Bot] and 7 guests