我在使用精靈畫面時不斷收到andengine的這個錯誤。ArrayIndexOutOfBoundsException與精靈畫面
任何人都可以解釋我的意思嗎?
08-30 13:31:50.053: E/AndroidRuntime(9643): java.lang.ArrayIndexOutOfBoundsException: length=12; index=12
這裏是錯誤發生的地方。
pItem.setCurrentTileIndex(MathUtils.random(0, pItem.getTileCount()));
謝謝!完美的作品。 – twalker22