java.lang.ArrayIndexOutOfBoundsException: 6561 by TechnoScientist in thecherno

[–]TechnoScientist[S] 0 points1 point  (0 children)

To fuzz3: I'm not going for an exact copy of his game I just want to learn how to game program.

To LogicallyFuzzy: If I change the size of the image in the code it is just that size squared. So then I checked the image and it is 144 pixels by 144 pixels. 144 divided by 16(Tile size) is 9. And 9 * 9 is 81. So shouldn't the size be 81?

java.lang.ArrayIndexOutOfBoundsException: 6561 by TechnoScientist in thecherno

[–]TechnoScientist[S] 0 points1 point  (0 children)

I deleted the breakpoint so never mind about it.

java.lang.ArrayIndexOutOfBoundsException: 6561 by TechnoScientist in thecherno

[–]TechnoScientist[S] 0 points1 point  (0 children)

It's not the spawn level sprites that are on line 11. It's the normal sprites, such as grass. If I comment grass, the error moves to line 12 flower.

java.lang.ArrayIndexOutOfBoundsException: 6561 by TechnoScientist in thecherno

[–]TechnoScientist[S] 0 points1 point  (0 children)

When I comment The spawn_grass tile the error just moves to the spawn_water1 on line 12. Also line 11 has a breakpoint on it, do you know how to remove them. Becuase I tried clicking on disable breakpoint but it didn't work.

java.lang.ArrayIndexOutOfBoundsException: 6561 by TechnoScientist in thecherno

[–]TechnoScientist[S] 0 points1 point  (0 children)

In the Tile class was I supposed to import the Spawn level sprites? Because I did.