But I dont have even any idea. I tried like that, but not working.
if(!Collision::BoundingBoxTest(Ludzik, Przesz))
{
if(App.GetInput().IsKeyDown(Key::Up))
Ludzik.Move(0, -100 * time);
if(App.GetInput().IsKeyDown(Key::Down))
Ludzik.Move(0, 100 * time);
if(App.GetInput().IsKeyDown(Key::Left))
Ludzik.Move(-100 * time, 0);
if(App.GetInput().IsKeyDown(Key::Right))
Ludzik.Move(100 * time, 0);
}
I dont know how it should be solved.