Behavior: rex_Container tag
Container plugin try to store reference of instances. User could get these instances from SOL. Moreover, container has X,Y position, user could pin instances on it to move them together.
- Move container with 8 dir behavior
Using pin behavior to move these sprite instance together
- Pick instances
"Condition: pick container from instance"
"Condition: pick all instances in this container"
"Action: pick all instances in this container"
In this capx, user first use "Condition:On touch object" to get touched instance, then use "Condition: pick container from instance" to get it's container. Finally, use "Condition: pick all instances in this container" to get other instances in this container in SOL, so that user could get these instances in actions.
However, container plugin add instance at runtime. User could use "container tag" behavior to add instance into container at layout editor.
- Container tag
Instance will be added into container which has the same tag.