Image Collision

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.
User avatar
Lacotemale
Citizen
Posts: 75
Joined: Sat Mar 08, 2014 9:01 pm

Re: Image Collision

Post by Lacotemale »

No worries. Changed it slightly. Seems to work fine now.

So all I did is check ahead of where we are going to move by 1 pixel. If we wouldn't be able to move there then don't. :)

Also moved that function out of the update. It doesn't need to be inside that. Just call a check on it when you need to see if a collision true or false with the enemy.
Attachments
Testing.love
(956 Bytes) Downloaded 85 times
Techron
Prole
Posts: 13
Joined: Fri Mar 06, 2015 11:06 pm

Re: Image Collision

Post by Techron »

Thank you! :D
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 4 guests