1

Flashpunk で複数のスプライトを含むグループまたはレイヤーを作成する方法は? 組み込みのクラスはありますか?そうでない場合、どのクラスを拡張することが提案されていますか?

4

1 に答える 1

1

You can assign more than one graphic to an entity/layer via a graphiclist:

layer = -1;
var display:Graphiclist = new Graphiclist(buttonBackround,label,etc);
graphic = display;

You can also add a graphiclist in a world using

addGraphic(display,layerHere);

Just be sure to list items in the order you want them to be rendered in that layer, like a button's image before the label for example.

Hope that helps!

于 2013-03-19T12:15:49.350 に答える