Container object & Global library

This forum is currently in read-only mode.
From the Asset Store
Hand-painted tiles, objects, animated objects, and background to build a colorful Mayan civilization environment.
  • I love the way flash handles elements. Every object has its own timeline and can hold it�s own actions and subobjects. Is it possible to create some kind of container object with it�s own event sheet? Also a global library for reusable elements would be great.

    Example:

    I create a complicated Explosion with different particle systems for fire, smoke, different debris ect. Creating this effect in a container object (has it�s own canvas like a layout) would speed up the workflow. Exposed variables could be a good way to control the container object (like Expose: width of object a inside containerobject as: "Debriswidth". Then within the normal layout you can access this exposed variable via the layouts normal event sheet.

    A global library where I can drag reusable elements into my layouts would be a great addition.

    I know my english is gruesome. Sorry for that.

    Greetings

    Soulsliver

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Funny I always get into trouble when I expose my variables.

    Anyway there is an attribute called container, that's probably along the lines of what your thinking of.

    There's some information on it in the wiki.

    ....if it loads.

    http://sourceforge.net/apps/mediawiki/construct/index.php?title=Main_Page

    I would warn you its not optimal for particles, as every object is created, and destroyed at the same time.

    Also its a bit late to be asking for changes to the program, but hey stick around for C2.

  • Hey newt,

    thanks for your reply. I knew that my attempt would fail badly

    idea is more of a layout "inside" a layout.

    For now I wil drop the term "container" and cal it "mymagicobjectwithitsownlayerandeventshet" for short "mmowiolaes".

    Ok, I create a new Game. Then on my normal layout I create a mmowiolaes. Now I can rightclick this mmowiolaes and select edit. A new layout pops up. It?s the layout of this mmowiolaes object. Has now boundaries just a center cordinate 0,0. Inside I can work like in a normal layout. Create sprites, events, particle systems ect.

    I create 3 diffenret particle systems. Each with a spawn rate of 0.

    Inside the object options (tab on the left) of particle system I can check a box under "rate" marked EV with a single textfield. EV means expose variable. I?ll type "Particles1.rate".

    I close this mmowiolaes. This object is now inside my global library and I can drag it into every layout I?m working on.

    In my layout of choice I drag an instance of this mmowiolaes onto the canvas/layout. From here on I can alter the rate of the particle system inside this mmowiolaes via the exposed variable:

    + Collision between objecta and objectb

    • set mmowiolaes.x to objectb.x
    • set mmowiolaes.y to objectb.y
    • set nameofmmowiolaes.Particles1.rate to 500

    Just a small example to make it clear I hope. I found the container object in the Wiki. That?s normaly the first place to lok for exotic parts of construct.

    Gretings

    Soulsliver

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