c# XNA game studio 4.0

First things first, I want to devise game about PINBALL game. However I have no idea cope with making "blocks" in the game. "the blocks" itself's function to make the ball bouncing every hit the blocks, but the reality it did not work.

1
2
3
4
5
6
7
8
9
10
11
12
13
  public Boolean DetectballBlocksCollision()
        {
            if (ballPosition.Y >= blocksPosition.Y && ballPosition.X > blocksPosition.X && ballPosition.X < (blocksPosition.X + blocksPosition))
            {
                return true;
            }
            else
            {
                return false;
            }
        }
    }
}

The problems say: (System.Array does not contain a definition for 'Y' and there is no extension method 'X' accepting a first argument of type 'System.Array' could be found).
On my opinion the problem is about the format of "System.Array". What kind a format suppose to be true format ?
This is a C++ forum.
Topic archived. No new replies allowed.