Why does this simple collision detection not work?

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
User avatar
Kasperelo
Party member
Posts: 343
Joined: Fri Apr 13, 2012 1:47 pm
Location: The Milky Way

Why does this simple collision detection not work?

Post by Kasperelo »

I have no idea why this doesn't work.
Attachments
game.love
(2.86 KiB) Downloaded 69 times
User avatar
pgimeno
Party member
Posts: 3551
Joined: Sun Oct 18, 2015 2:58 pm

Re: Why does this simple collision detection not work?

Post by pgimeno »

A sign. The player.y + player.speed * dt inside the rectangle call of the Up direction should be a -.
User avatar
Kasperelo
Party member
Posts: 343
Joined: Fri Apr 13, 2012 1:47 pm
Location: The Milky Way

Re: Why does this simple collision detection not work?

Post by Kasperelo »

oh, thanks! that was a bit of a stupid mistake :P
Post Reply

Who is online

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