I have the player spritesheet -

Using the MarteEngine resource loader index file
Code:
<sheet key="playerSpritesheet" file="player\player.png" width="512" height="512" />
I load it using
Code:
ResourceManager.loadResources("resources/resourceIndex.xml");
.
Now for some reason, alot of functions related to using the spritesheet aren't working. In this particular case, all I am trying to do is set the graphic of the entity.
Code:
SpriteSheet spriteSheet = ResourceManager.getSpriteSheet("playerSpritesheet");
setGraphic(spriteSheet.getSprite(1, 0).getScaledCopy(4f));
this is throwing the error "SubImage out of sheet bounds: 1,0". Can anyone figure this out?
_________________
Liam (liamzebedee) Edwards-Playne
Cryptum