![]() ![]() Iterates over the children of the group performing one of several actions for matched children.Ī child is considered a match when it has a property, named key, whose value is equal to valueĪccording to a strict equality comparison. ![]() The physics body type to use when physics bodies are automatically added. Change the body type with #physicsBodyType. If true all Sprites created with #create or #createMulitple} will have a physics body created on them. ![]() If true this group will be added directly to the Game.Stage instead of Game.World. Not used internally but useful for debugging. If undefined/unspecified the Group will be added to the Game World if null the Group will not be added to any parent.Ī name for this group. The parent Group (or other DisplayObject) that this group will be added to. Parameters NameĪ reference to the currently running game. Groups are also display objects and can be nested as children within other Groups. In addition, Groups provides support for fast pooling and object recycling. Groups form the logical tree structure of the display/scene graph where local transformations are applied to children.įor instance, all children are also moved/rotated/scaled when the group is moved/rotated/scaled. A Group is a container for display objects including Sprites and Images. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |