Ah, that's right. You helped me realize where I went wrong. When I was creating each environment object I was putting it in environment[i] in the loop, which i always increased by 1, whether it made...
Type: Posts; User: DOLZero
Ah, that's right. You helped me realize where I went wrong. When I was creating each environment object I was putting it in environment[i] in the loop, which i always increased by 1, whether it made...
Okay, I think I have got it narrowed down. It seems there is something going on in this bit of code here:
for (int i = 0; i < environment.length; i++){...
I added in "system.out.prinrln(environment);" right before the line and it printed out "[LMark2.environment;@5d6d2633" in the console.
Although I am not sure if that is exactly what you meant....
line 121 appears to be this line in the code:
for (int i = 0; i < environment.length; i++){
I am pretty sure that environment is already initialized as an array before the program ever reaches...
The errors happen whenever the program tries to paint graphics to the frame. With the timer code commented out, the errors only appear the one time:
edit: errr, it appears twice:
Exception in...
I have been working on a program to run a basic 2 dimensional sidescrolling game. Right now I am trying to get the basic image window working. I was able to get a simple version to run, but now that...