Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在 Flashpunk 中创建具有多个精灵的组或图层?有内置的类吗?如果没有,建议扩展哪个类?
您可以通过图形列表将多个图形分配给实体/层:
layer = -1; var display:Graphiclist = new Graphiclist(buttonBackround,label,etc); graphic = display;
您还可以使用在世界中添加图形列表
addGraphic(display,layerHere);
只需确保按照您希望它们在该层中呈现的顺序列出项目,例如标签之前的按钮图像。
希望有帮助!