Hi,
is it possible to nest groups, like for example:
Group1 = Background Stuff
Group2 = Enemies
Group3 = Effects
CharacterGroup = An array of groups
Now an enemy character sprite is created, a shadow image for it and a healthbar image. All three are inserted into
CharacterGroup[1]
Now more enemies,shadows and healthbar images are created the same way and are put into CharacterGroup[2] and so on…
Later all CharacterGroup[x] enemies are put inside the Group2
If this is possible, can I move the Enemies like CharacterGroup[2] with transition.to? (So an enemy, his shadow and healthbar will move together with only one transition.to call)
And if so, what do I have to do to get the screen coordinates right for the movement, because groups behavior is a little bit “strange”? I couldn’t find any info on this kind of nesting and group movement.
Any help welcome!
Thank you
Daniela
Is there a good tutorial on how to work with groups the way we normally are working with other display objects? All I can find is about group layering and moving child images inside groups but nothing about working with groups like images… positioning them on the screen and so on.