If you found an intersecting box, you need to break the foreach
loop:
public void Colision()
{
foreach (BoundingBox BB_map in Map_BB)
{
if (hero.Intersects(BB_map))
{
test = "true";
break;
}
else
test = "false";
}
}
Without the break;
, the following, non-matching boxes will set test
back to "false"
.