我需要知道如何将动画的内容移动到另一个动画中。
animation1 = new Animation;
animation2 = new Animation;
index = 0;
tempFrames = TextureRegion.split(xxx, xxx.getWidth() / 4, xxx.getHeight() / 2);
for (int i = 0; i < 4; i++) {
for (int j = 0; j < 2; j++) {
tempAnimationFrames[index] = tempFrames[j][i];
index++;
}
}
animation = new Animation<TextureRegion>(1f / 8f, tempAnimationFrames);
如何在animation2中移动动画animation1?
答案 0 :(得分:0)
这比你想象的容易......我遇到了同样的问题,你已经宣布了animation2,所以你只需要写:
animation2 = animation1;