Hi all,
I'm probably doing something very obviously wrong here but I'm not sure how to modify my code to correct it. Just wondering if anyone has any advice:
I create the variable:
Array[,] myLevel = { { Green, Brown, positions1 }, { Green2, Brown2, positions2 } };
where each of the elements Green, Brown, positions1, etc. are of the type int[,].
I then want to create an instance of my method Game:
public Game(int[,] Grass, int[,] Rocks, int[,] positions, int level)
I have used the following line to try to call the method:
Game game1 = new Game(myLevel[thislevel, 0], myLevel[thislevel, 1], myLevel[thislevel, 2], thislevel);
I get the error message
"Cannot convert from System.Array to int[*,*]
.
Thanks very much for any advice.
Stephen.