Im trying to get a class setup so that I can easily import and use a spritesheet, and the code seems like it should work but for some reason im getting an error message.
The code that is
testing the new spritesheet:
(No double buffering, I know)
And heres SpriteSheet.java where the error is happening (error points to line 50) Ill leave the javadoc so you guys know what is going on:
and finally, the error:
Tried messing with a few things but i cant seem to figure out whats going on.