将多个图层转换为一个精灵表

时间:2022-02-07 20:03:12

I'm learning flash, and need to generate a sprite sheet of an animation. I was following a tutorial and imported a layer for each appendage of the turtle I'm animating. Each appendage in each layer is a symbol, but when I select all the layers, right click, and do "generate sprite sheet" it exports a png with all of the different symbols disjointed. How do I combine all the layers and keep the animation of each symbol so that it looks like one animation.

我正在学习flash,需要生成一个动画的精灵表。我正在关注一个教程并为我正在动画的乌龟的每个附属物导入了一个图层。每个图层中的每个附属物都是一个符号,但是当我选择所有图层时,右键单击并执行“生成精灵表”,它会导出一个png,其中所有不同的符号都是脱节的。如何组合所有图层并保留每个符号的动画,使其看起来像一个动画。

Ex: I have one layer called "left leg" (with animation) and one called "right leg"(without animation) and I want to export a sprite sheet of both legs with the one moving. How do I do this?

例如:我有一个名为“左腿”的图层(带有动画)和一个名为“右腿”(没有动画)的图层,我想要导出一条腿的精灵图片。我该怎么做呢?

Thanks!

1 个解决方案

#1


I figured it out, if anyone else ever runs into this issue.

我想通了,如果有其他人遇到过这个问题。

Copy all the frames from all of the layers, then go Insert->new symbol and paste them into the first keyframe of the new layer in the timeline of the new symbol.

复制所有图层中的所有帧,然后转到插入 - >新符号并将其粘贴到新符号时间轴中新图层的第一个关键帧中。

#1


I figured it out, if anyone else ever runs into this issue.

我想通了,如果有其他人遇到过这个问题。

Copy all the frames from all of the layers, then go Insert->new symbol and paste them into the first keyframe of the new layer in the timeline of the new symbol.

复制所有图层中的所有帧,然后转到插入 - >新符号并将其粘贴到新符号时间轴中新图层的第一个关键帧中。