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.
Image Collision
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
- Lacotemale
- Citizen
- Posts: 75
- Joined: Sat Mar 08, 2014 9:01 pm
Re: Image Collision
- Attachments
-
- Testing.love
- (956 Bytes) Downloaded 91 times
Who is online
Users browsing this forum: Bing [Bot], Google [Bot] and 5 guests