[Plugin] rex_Container

0 favourites
From the Asset Store
The I18N (Translation) is a Construct plugin created to translate text in game.
  • 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:

    Using pin behavior to move these sprite instance together

    "Condition: pick container from instance"

    "Condition: pick all instances in this container"

    "Action: pick all instances in this container"

    <img src="http://i1081.photobucket.com/albums/j352/rexrainbow1/container.png" border="0">

    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:

    Instance will be added into container which has the same tag.

  • great idea Rex!!!!!!!

  • Hmm, didn't see this one.

    So this is pretty much like the object pairer from CC?

  • newt

    Yes, it's my goal to make a object pairer or a similar one.

  • Update:

    Using "action: destroy" for destroying container and instances under this container. "action: destroy container" had been deprecated since Ashely fix the engine.

  • 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.

  • 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.

    You can see the sample capx.

    It introduces how to use pin behavior and container.

  • Is it possible to implement "moving instances" together with container without pinning them to it? something like boolean "move instances = true"

  • 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?)

  • Cool! I think, position, angle, position & angle will be enough.

  • Update:

    Add pin mode at properties table. User could pin sprite instances automatically.

    xoros

    Here it is.

  • Great, thanks man!

  • r110 has "container" feature in C2 engine.

    The different between engine's container and my container plugin is, my container could add instance dynamically, and it could have behavior like 8dir to control the position.

    Official (engine) container could create instances in container together, my plugin could not. <img src="smileys/smiley19.gif" border="0" align="middle" />

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Heya rexrainbow. Thanks for this plugin. I'm currently using it (not using the builtin container!) for dynamic containers and I've ran into a bug:

    If you choose a different z-order the connection between tag and container breaks. I would be eternally grateful if you could take a peek at this:)

  • Julmust

    Uh, could you provide me a test capx for more detail? Thanks.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)