If you don't care AABB then the following should work for you. Otherwise just google for 'AABB collision detection' and you should find plenty of articles. By the way, I really doubt you will need pixel perfect collision. ;)
if (player.getGlobalBounds().intersects(object.getGlobalBounds())
{
// collision
}
http://www.sfml-dev.org/documentation/2.2/classsf_1_1Rect.php
If you don't care AABB then the following should work for you. Otherwise just google for 'AABB collision detection' and you should find plenty of articles. By the way, I really doubt you will need pixel perfect collision. ;)
if (player.getGlobalBounds().intersects(object.getGlobalBounds())
{
// collision
}
http://www.sfml-dev.org/documentation/2.2/classsf_1_1Rect.php
I dont think you quite understand. I'm wondering how I can detect whether or not the player is within the white space of the picture. getGlobalBounds() simply deals with rectangles, which is not what I'm dealing with for my "spike" object.