The colision is working but its something wrong with theese lines since the player is just standing still at the start position x10 y10
for (int i = 0; i < sprites.Length; i++)
{
if (player.Top > sprites[i].Top && player.Bottom < sprites[i].Top) //Checking for intersection at the top of the player
{
player_Collision1 = true; //Found collision
}
else if (player.Bottom > sprites[i].Top && player.Bottom < sprites[i].Bottom) //Checking for intersection at the bottom of the player
{
player_Collision2 = true; //Found collision
}
else if (player.Left > sprites[i].Right && player.Left < sprites[i].Left) //Checking for intersection at the left of the player
{
player_Collision3 = true; //Found collision
}
else if (player.Right > sprites[i].Left && player.Right < sprites[i].Right)//Checking for intersection at the right of the player
{
player_Collision4 = true; //Found collision
}
}
Im using the XNA's rectangle and player is name of one rectangle and sprites is an array of all the rectangles that player can collide with, The XNA rectangle lets you get the cordinates of the sides of the rectangle as you se me do: player.Top player.Bottom etc etc.

Intersectsmethod? If you define two rectangles, you can use it to see if they overlap. msdn.microsoft.com/en-us/library/… - George Johnston