I have tried so many different approaches to this, and none have worked. This is my current collision check.
//Dimensions of player sprite
static int h = Play.player.curAnimation.frames[Play.player.curAnimation.curFrame].Height * 3;
static int w = Play.player.curAnimation.frames[Play.player.curAnimation.curFrame].Width * 3;
public static void CollisionCheck(Player p)
{
foreach(Tile t in Play.curMap.collisionTiles)
{
if (p.position.X + w > t.position.X && p.position.X < t.position.X + 64 && p.position.Y > t.position.Y && p.position.Y < t.position.Y + 64)
{
collided = true;
}
else
{
collided = false;
}
}
}