hello, right now im having a bit of a dilemma with my collision detection. its not en error but more like a glitch.
heres the code:
if(Game.GetInput().IsKeyDown(sf::Key::W))
{
Atheyy.SetSubRect(sf::IntRect(34,0,51,22));
if(Collision::PixelPerfectTest(PlayyCol,PlayyMapCol,1))
{
}
else
{
Atheyy.Move(0,-0.3);
View.Move(0,-0.3);
PlayyCol.Move(0,-0.3);
}
the problem is:
when i move everythings fine, but when i collide with said sprite then i cant move at all.
i have also tried making a different sprite jsut for collision.
basically im asking if i did this right.