else if ((keyboardState.IsKeyDown(Keys.Up) || (gamepad1State.ThumbSticks.Left.Y > 0f)) && (Sblock == false))
{
for(int x = 0; x <= 65; x++)
{
if ((charBounds.Intersects(mBlock[x])) && (Nblock == false) && (Wblock == false) && (Eblock == false))
{
Sblock = true;
}
}
This in theory would check all the rectangles ive made in the 'mblock' array for a collition then stop the movement of the direction but it doesn't work.. for it to work id have to do:
if (((charBounds.Intersects(mBlock[0])) || ((charBounds.Intersects(mBlock[1])) || ............. || ............) && (Nblock == false) && (Wblock == false) && (Eblock == false))
something im doing wrong or something or going about it the wrong way?