sbfgamer's Recent Forum Activity

  • Or rather, to clarify, there seems to be two issues here:

    The "On Created" event is not called when an Array is created via a container object.

    Unlike other container objects, it is not possible to automatically pick the right instance of the associated Array by picking an object that contains it in an event sheet.

  • This is a re-post of a topic I started in the "How Do I...?" forum:

    Howdy folks!

    I'm having some trouble with using arrays with containers.

    Here's what the manual states:

    "It's possible to add data storage objects like Array and Dictionary to a container with another object. Despite the fact these objects are invisible, a separate instance of the object is still created for each container. This allows you to have a dedicated Array or Dictionary for each instance of an object. This can be very useful as an advanced substitute for instance variables, such as if a very large number of variables is necessary, or if variables need to be dynamically added and removed."

    But I've found this to be untrue. When I add an Array to a container, it doesn't automatically instantiate/destroy new copies of that array when the container object is created/destroyed.

    Has anyone else found issues with this?

    Here's an example .capx to demonstrate what I'm talking about.

    ArrayCreationTest.capx

    In this demo, every time the player clicks, they should see the text "Created Array"

    But the arrays aren't being created for some reason...

    Help please?

    Thanks,

    Sam

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Here's an example .capx to demonstrate what I'm talking about.

    ArrayCreationTest.capx

    In this demo, every time the player clicks, they should see the text "Created Array"

    But the arrays aren't being created for some reason...

    Help please?

  • Howdy folks!

    I'm having some trouble with using arrays with containers.

    Here's what the manual states:

    "It's possible to add data storage objects like Array and Dictionary to a container with another object. Despite the fact these objects are invisible, a separate instance of the object is still created for each container. This allows you to have a dedicated Array or Dictionary for each instance of an object. This can be very useful as an advanced substitute for instance variables, such as if a very large number of variables is necessary, or if variables need to be dynamically added and removed."

    But I've found this to be untrue. When I add an Array to a container, it doesn't automatically instantiate/destroy new copies of that array when the container object is created/destroyed.

    Has anyone else found issues with this?

    Thanks,

    Sam

sbfgamer's avatar

sbfgamer

Early Adopter

Member since 29 Sep, 2012

None one is following sbfgamer yet!

Trophy Case

  • 12-Year Club

Progress

12/44
How to earn trophies