[Plugin] rex_Container

Post your completed addons to share with the community

Post » Sun Sep 09, 2012 11:08 am

Plugin: rex_Container (Update:2013/05/31)
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.

Sample capx:
- 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.

Sample capx:
- Container tag
Instance will be added into container which has the same tag.rexrainbow2013-05-31 01:13:37
B
97
S
22
G
178
Posts: 4,122
Reputation: 104,051

Post » Sun Sep 09, 2012 3:37 pm

great idea Rex!!!!!!!
B
159
S
38
G
11
Posts: 229
Reputation: 17,361

Post » Tue Sep 11, 2012 10:30 pm

Hmm, didn't see this one.
So this is pretty much like the object pairer from CC?
Image Image
B
161
S
48
G
91
Posts: 7,358
Reputation: 67,271

Post » Wed Sep 12, 2012 12:52 am

@newt

Yes, it's my goal to make a object pairer or a similar one.
B
97
S
22
G
178
Posts: 4,122
Reputation: 104,051

Post » Wed Sep 12, 2012 3:41 am

Update:

Using "action: destroy" for destroying container and instances under this container. "action: destroy container" had been deprecated since @Ashely fix the engine.
B
97
S
22
G
178
Posts: 4,122
Reputation: 104,051

Post » Thu Sep 13, 2012 12:25 pm

Hi,

I'm trying to create a transparent basket in which its basement is different object and it is solid. The basket as a whole is 3 images.the Fruits will be falling in to it. Is it possible to group basket images with container plugin? Please tell me how to do it.
B
2
Posts: 4
Reputation: 358

Post » Mon Sep 17, 2012 6:26 am

[QUOTE=rkv1984] Hi,

I'm trying to create a transparent basket in which its basement is different object and it is solid. The basket as a whole is 3 images.the Fruits will be falling in to it. Is it possible to group basket images with container plugin? Please tell me how to do it.[/QUOTE]

You can see the sample capx.
It introduces how to use pin behavior and container.
B
106
S
27
G
8
Posts: 209
Reputation: 12,525

Post » Fri Sep 21, 2012 11:43 am

Is it possible to implement "moving instances" together with container without pinning them to it? something like boolean "move instances = true"
B
42
S
11
G
4
Posts: 505
Reputation: 7,267

Post » Sun Sep 23, 2012 12:38 am

@xoros

Humm.. it will duplicate pin behavior code, so that I have not implement "moving instances" together into this plugin.

Pin behavior has 5 modes
- Position & angle
- Position only
- Angle only
- Rope style
- Bar style

What do you like to put into Container plugin? (Or all mode?)
B
97
S
22
G
178
Posts: 4,122
Reputation: 104,051

Post » Sun Sep 23, 2012 7:43 pm

Cool! I think, position, angle, position & angle will be enough.
B
42
S
11
G
4
Posts: 505
Reputation: 7,267

Next

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 4 guests