2d arrays

  1. GregJ7

    Resolved Beginner C# multi-dimensional array (or reference) error

    Can someone tell me what is wrong with this code? I don't see what the error message (for the last statement) is referring to. The only object reference in that statement looks like it is dereferenced with [0,0] to an instance of the object to me. ERROR 'Object reference not set to an instance...
  2. S

    Resolved How to access an element from a non-sequential 2D array

    Hi All, This may sound stupid to you, as I'm a casual programmer. I have a two-dimensional array of values. Where rows are angles in decimal degrees, increments can be by 1 degree, 5 degrees even 10. Columns are also organized similar manner. I know how to access a generic two-dimensional...
  3. P

    XNA 2D Array help

    I'm trying to figure out how to add each "block" to a 2D array which I can then access and change the corresponding bool value to true or false as needed. Basically what this is meant to do is create an initial grid of white squares using one sprite and then as I click on each tile/square it...
Back
Top Bottom