Reference container as a single object?

0 favourites
  • 3 posts
From the Asset Store
112 High-Quality destruction sounds for videogames
  • I have a container comprised of 3 objects which is intended move as a group when a target object is dragged.

    Currently I'm separately pinning each of the components of the container to the target object, which seems to work. But every time I want to interact with the container as group, it seems I have to manually pick all the components of the container, which is tedious.

    Demo here.

    I supposed I can write functions to handle all the object picking, but is this really the only way to treat containers as a single object?

    Thanks for any suggestions for improvement.


  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You don't need to pick all objects form the container, just one is enough, other members will be picked automatically. And if you add Tile sprite to the container, you won't need to pick anything:

    Edit: actually, even "For each Tile" is not required, all objects will pin to their own tiles.

  • Thanks for the helpful response. Not sure yet if I can keep the tile as part of the container, but good to know from your explanation. And with that arrangement, layering seems to stay intact more reliably when moving a container to the top of the layer.

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