Re: Image Collision
Posted: Mon Mar 09, 2015 9:20 pm
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.
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.