Cloning objects and UID's

0 favourites
  • 2 posts
From the Asset Store
Hand-painted tiles, objects, animated objects, and background to build a colorful Mayan civilization environment.
  • I have a game where I have a 'wheel' sprite is continually rotating on it's center point.

    A 'target' sprite is attached to the wheel sprite's image point (far right) so it creates the illusion that the 'target' sprite is rotating (the 'wheel' sprite is invisible).

    I want to clone both sprites to create a second wheel and target sprite. However, when the original 'target' sprite is destroyed (on overlap) the 2nd 'target' sprite jumps back to the original wheel's image point.

    Ideally, I need to create multiple clones of these sprites but not if they keep jumping back to the first.

    Here's the basic layout:

    Can anyone help me out please? Thanks in advance!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Easiest way would be to put both objects into a container. Then both objects are bound together and always refer to the 'container partner'. As your code is now, you always refer to all objects without specifying which belong together. I suspect in this case Construct will automatically choose the objects that are closest to each other.

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