Search found 7 matches

by Love2dNewbie
Sun Dec 15, 2013 9:13 am
Forum: Support and Development
Topic: Jumping
Replies: 2
Views: 1529

Re: Jumping

:D this helped
I took that off the wiki and tweaked it a little bit.
by Love2dNewbie
Sun Dec 15, 2013 7:58 am
Forum: Support and Development
Topic: Jumping
Replies: 2
Views: 1529

Jumping

I've recently started programmng my very first game, I got my player jumping and walking, ... But when the player jumps, he jumps upwards and he falls straight through the ground. I'm using a rectangle I drew using love.graphics for the ground. I want the player to stop at Y = 276. Code: function lo...
by Love2dNewbie
Sat Dec 14, 2013 7:48 pm
Forum: Support and Development
Topic: Making a player.
Replies: 9
Views: 3709

Re: Making a player.

Still doesnt work. My code: function love.load() player = {} player.x = 10 player.y = 276 player.vel = 1 print('Game Loaded') print('v 0.1') love.graphics.setBackgroundColor(0, 255, 255) player = love.graphics.newImage("textures/char.png") end function love.draw() love.graphics.setColor(10...
by Love2dNewbie
Sat Dec 14, 2013 7:32 pm
Forum: Support and Development
Topic: Making a player.
Replies: 9
Views: 3709

Re: Making a player.

how can i define it?
by Love2dNewbie
Sat Dec 14, 2013 7:26 pm
Forum: Support and Development
Topic: Making a player.
Replies: 9
Views: 3709

Re: Making a player.

Error: main.lua:23: attempt to perform arithmetic on field 'x' (a nil value)
by Love2dNewbie
Sat Dec 14, 2013 7:03 pm
Forum: Support and Development
Topic: Making a player.
Replies: 9
Views: 3709

Making a player.

I'm making my very first game with Löve 2D and I'm having a few problems. How do I change the x position of the player by 1 when he presses the letter d? I tried: function love.update(dt) if love.keyboard.isDown("d") then player.x = player.x + 1 end end I'm a newbie to all this programming...
by Love2dNewbie
Fri Dec 13, 2013 5:14 pm
Forum: Support and Development
Topic: How do I use love2d in my IDE?
Replies: 2
Views: 2868

How do I use love2d in my IDE?

I'm using Kozola (http://www.matejtomcik.com/Public/Projects/Kozola/ - neat little IDE) and I'm not really sure how to use love2d in it.
I downloaded love2d, but I'm not sure what to do from there.
Any help? :(