Search found 8 matches

by Efbrefus
Fri Sep 12, 2014 10:40 pm
Forum: General
Topic: Collision! It ain't working.
Replies: 4
Views: 2671

Re: Collision! It ain't working.

elseif player.y + player.image:getHeight() > 600 then -- > 600 player.y = 600 - player.image:getHeight() elseif player.x + player.image:getWidth() > 800 then -- > 800 player.x = 800 - player.image:getWidth() end This is not really collision but "clamping". Alternative implementation: play...
by Efbrefus
Fri Sep 12, 2014 3:29 am
Forum: General
Topic: Collision! It ain't working.
Replies: 4
Views: 2671

Collision! It ain't working.

A while ago, I started playing with Love2d a bit, eventually left it. Came back, tried using the collision code I used in my previous experience, and it doesn't work anymore. My collision code: function world.collide() if player.x < 0 then player.x = 0 elseif player.y < 0 then player.y = 0 elseif pl...
by Efbrefus
Wed Jun 11, 2014 10:26 pm
Forum: Support and Development
Topic: Problem with movement.
Replies: 9
Views: 4934

Re: Problem with movement.

Holy Christ, I never noticed that. Lemme try that out.

...
...
Marry me.
by Efbrefus
Wed Jun 11, 2014 8:40 pm
Forum: Support and Development
Topic: Problem with movement.
Replies: 9
Views: 4934

Re: Problem with movement.

I think nobody really had an answer; I'm not sure I really understand your question. Can you elaborate a bit more and what you want to know? I can. I'm not sure what you want me to elaborate on specifically, so I'll give you more detail. The code above, which I've used before, seems to not work. I ...
by Efbrefus
Wed Jun 11, 2014 8:36 pm
Forum: Support and Development
Topic: Problem with movement.
Replies: 9
Views: 4934

Re: Problem with movement.

Robin wrote:What Plu said. Please read the forum rules. In particular, upload a .love of your game if you want us to help you with a problem, and explain precisely what that problem is.
Yus, thanks. I shall do that.
by Efbrefus
Wed Jun 11, 2014 9:43 am
Forum: Support and Development
Topic: Problem with movement.
Replies: 9
Views: 4934

Re: Problem with movement.

Eh, is this dead or something?
by Efbrefus
Fri Jun 06, 2014 7:20 pm
Forum: Support and Development
Topic: Problem with movement.
Replies: 9
Views: 4934

Re: Problem with movement.

this line Player.lua:22: attempted to perform arithmetic on field "speed" (a nil value) means that you are trying to use a field called "speed" and this does not exist. This is probably, because it should be "Speed" (with a capital letter). One advice for future posts:...
by Efbrefus
Fri Jun 06, 2014 8:10 am
Forum: Support and Development
Topic: Problem with movement.
Replies: 9
Views: 4934

Problem with movement.

This is my first game. Ever. This is also my first forum post. With that out of the way, I would like to discuss my issue. Since this is my first game, alot of the code I use it based off of tutorials. So...yeah. I've used this code before, for testing, etc. When I tried to run it this time, I got t...