0
Bitmap[] planeFrames = new Bitmap[4];
protected void onDraw(Canvas canvas) {
for(int i = 0 ; i < planeFrames.length;i++)
canvas.drawBitmap(planeFrames[i], plane.getCenterX(), 0, null); // planeFrames is an array of Bitmaps
}
我試着通過只交換圖像,但動畫一個平面它不工作,我不知道如果我的方法是簡單與帆布位圖的動畫,而無需使用精靈表
你應該發佈更多的代碼來幫助人們理解。 – VinceStyling