问题 I have created a sprite array from texture atlas like this. playerSprite = atlas.createSprites("player"); Inside texture atlas, player regions are named as player01 , player02 and player03 . playerAnimation = new Animation(0.5f, playerSprite); playerAnimation.setPlayMode(PlayMode.NORMAL); and I rendered it like this. batch.draw(playerAnimation.getKeyFrame(animTime,true), ninja.getX(),ninja.getY(), ninja.getWidth(),ninja.getHeight()); When I execute, this throws an error. "Exception in thread