Hi,
ok let me explain situation.
i have player sprite and blade.
my player position is 500,225.
blade position is 4500,250.
now i want to detect collision when blade touch the player , thats how i do it:
FloatRect PlayerBound = sp.getGlobalBounds();
FloatRect BladeBound = blade_SP.getGlobalBounds();
if (PlayerBound.intersects(BladeBound)) {
u = 4;
death = 1;
cout << "detected";
}
i just follow the tutorial in sfml learning section why this will not work at all? what im doing wrong?
thanks