[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
104
S
25
G
214
Posts: 4,282
Reputation: 122,576

Post » Sun Sep 09, 2012 3:37 pm

great idea Rex!!!!!!!
B
162
S
39
G
12
Posts: 230
Reputation: 17,751

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
164
S
49
G
124
Posts: 7,786
Reputation: 84,526

Post » Wed Sep 12, 2012 12:52 am

@newt

Yes, it's my goal to make a object pairer or a similar one.
B
104
S
25
G
214
Posts: 4,282
Reputation: 122,576

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
104
S
25
G
214
Posts: 4,282
Reputation: 122,576

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
113
S
28
G
8
Posts: 211
Reputation: 12,804

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
44
S
11
G
4
Posts: 507
Reputation: 7,348

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
104
S
25
G
214
Posts: 4,282
Reputation: 122,576

Post » Sun Sep 23, 2012 7:43 pm

Cool! I think, position, angle, position & angle will be enough.
B
44
S
11
G
4
Posts: 507
Reputation: 7,348

Next

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 0 guests