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