Skip to main content
Some_Dude
Known Participant
March 15, 2015
質問

Best way to organize a display list?

  • March 15, 2015
  • 返信数 1.
  • 393 ビュー

I tried organizing a display list by using setChildIndex(player, numChildren - 5); etc.

But it get's all mixed up with the other objects and sometimes shows on top or bottom of expected.

Is there a good way to keep the objects organized, so it can be displayed line by line from top to bottom?

Thanks.

このトピックへの返信は締め切られました。

返信数 1

Ned Murphy
Legend
March 15, 2015

Usually if you want something handled one by one you would use an array or some simiar data structure that maintains the desired order such that you can step thru it and process its elements in that order.

Some_Dude
Some_Dude作成者
Known Participant
March 16, 2015

Can you give me an example of code please?