Search:

Type: Posts; User: Norm

Search: Search took 0.26 seconds.

  1. Re: Assigning Colors in a 2D array in a random order

    The problem is there is no tile in the array at the i-th slot. You need to assign tiles to the array before you can set their colors.

    Any time before you want to access it.
  2. Re: Assigning Colors in a 2D array in a random order

    Is the value of tiles[i] null?
    If so, where do you assign it a value?
    You have defined an array, but you have not put any objects into the array. All its slots are empty.
    You must assign a value...
  3. Re: Assigning Colors in a 2D array in a random order

    Please copy and paste here the full text of the error message.
    Look at the line number referenced in your program and find the variable that has a null value. Then backtrack in the code to see why...
Results 1 to 3 of 3