Problem with collision 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
User avatar
VetruvianSprite
Prole
Posts: 12
Joined: Tue Sep 24, 2013 3:35 am
Location: Pennsylvania

Problem with collision code

Post by VetruvianSprite »

I just started this new project but right out of the gate I'm having a problem I can't fix, this is supposed to simply reset the player to the last non-collision space but instead its doing all sorts of weird things, I've done this a million times already and I can't figure out whats wrong.

P.S. the art isn't mine its just placeholder, just in case anyone recognized it from somewhere.
Attachments
main.love
Here is my love.
(16.48 KiB) Downloaded 142 times
I love a nice D.R.Y. K.I.S.S.
User avatar
Ranguna259
Party member
Posts: 911
Joined: Tue Jun 18, 2013 10:58 pm
Location: I'm right next to you

Re: Problem with collision code

Post by Ranguna259 »

With the way your code works you shouldn't set it to the last, try setting it to the current
LoveDebug- A library that will help you debug your game with an on-screen fully interactive lua console, you can even do code hotswapping :D

Check out my twitter.
User avatar
VetruvianSprite
Prole
Posts: 12
Joined: Tue Sep 24, 2013 3:35 am
Location: Pennsylvania

Re: Problem with collision code

Post by VetruvianSprite »

Thanks! The solution was right in front of my face lol
I love a nice D.R.Y. K.I.S.S.
Post Reply

Who is online

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