Link object instances together

0 favourites
  • 2 posts
From the Asset Store
Firebase: Analytics, Dynamic Links, Remote Config, Performance, Crashlytics on Android, iOS & Web Browser
  • Hey guys ! :) New face here nice to meet you !

    There is something i am still having trouble with construct 2, it's understanding how to link objects instances together.

    My problem is : i have a character which use the pathfinding behavior.

    I do stock X&Y positions into an array to save a sequence of multiple move orders which will be executed later.

    But how do you do to make an unique array linked to a single character instance ? So far whatever i do modify all the array object instances.

    Maybe not very clear, but thanks a lot guys if you have a solution <img src="smileys/smiley9.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
  • Maybe using a container?

    scirra.com/manual/150/containers

    -Select your character instance object.

    -At the properties bar, under "Container" click create...

    -Select the array object to be linked to the character instance object.

    -Set the selected array "Global" to "No"

    In this case, everytime a character instance is create, a unique array is also being created and tagged to the instance. To get/use the array of the particular instance, just pick the character instance and you can access the array straight(you don't have to pick the array separately).

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