How do I re-create a container with correct object offsets?

From the Asset Store
112 High-Quality destruction sounds for videogames
  • I have a container with a bunch of objects. The original objects are arranged (rotation and position) so it looks correct as a complete 'contained' composite object .

    Now, when I want to instantiate this container it works fine, but all of those individual objects are now positioned at the exact same point in the new instance. A nicely arranged graphic is now just a mess.

    Am I doing something wrong or do I need to manually recreate the offsets of each item whenever I recreate an instance?


  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Containers only link objects logically, you will need to re-create offsets with code. An easy way to do this is with image points on the biggest "parent" sprite. For example, if you are making a human body, define image points for arms/legs/head.

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