Hi, I’ve looked and searched but no answer.
I’m about to implement the director class into my game, but I already have alot of groups in it. The tutorial doesn’t mention anything and the question haven’t been asked before it seems, oddly.
What do I do with my groups? I use them to order them into z depth as of now and I can only imagine the work it would take to use only one group(localGroup) to do this with director.
Anyone know? [import]uid: 21652 topic_id: 16418 reply_id: 316418[/import]
You insert all of your groups into localGroup from back to front. Top most group would be inserted last. [import]uid: 40137 topic_id: 16418 reply_id: 61296[/import]
Oh, like this then:
myGroup:insert( background )
myGroup:insert( title )
localGroup:insert( myGroup )
Would this work?
I was thinking about it, but didn’t seem to find any documentation about it. Group documentation seemed to only mention groups, but not groups into groups.
[import]uid: 21652 topic_id: 16418 reply_id: 61297[/import]
Yes, or you can insert all the groups into the localGroup at the beginning when you create them and they are still empty. Either way works. [import]uid: 40137 topic_id: 16418 reply_id: 61404[/import]
Have you try to look into community/share your code. There are good example provide by good people. There are many sample by catagory. Please try below link, see can they help you on group insert.
http://developer.anscamobile.com/code/ghost-vs-monsters-oop
KC [import]uid: 94613 topic_id: 16418 reply_id: 65351[/import]