I have code that initializes a 2d array, but when the Y goes to zero it gives an array out of bounds exception. Why is this? How do I fix it?
It’s impossible to know without seeing the code in question. Post the line that declares the array. Post the loops that you use to loop over the array elements. Tell us which line is highlighted when you get the error.
As TfGuy44 said, you should Post some code, But as far as i understood your Problem, your Second Array probably isn‘t initialized correctly.
im going to respond later.
Hope you resolved your problem. Don’t forget that the forum is here to help if you can share your code and point out the specific problem you are having.