Search Unity

Question Interconnected movement of several objects at the same time. I have two questions.

Discussion in '2D' started by Analisator, Sep 1, 2020.

  1. Analisator

    Analisator

    Joined:
    Sep 1, 2020
    Posts:
    1
    Hello. I have two questions.
    1. There are several objects on one line, for example: 7. It is required to move an object for example: 3, 5 or any other, to the right or to the left. It is necessary that other objects move with him at the same time. For example, I clicked on object 3 and move it to the left, objects 1 and 2 move behind it, 4, 5, 6, 7 move in front of it, on the same line.
    or

    2. For example 7 objects in a line. Object 7 approached the line and disappeared behind it and appeared on the other side, in front of object 1.
    | appeared 7, 1, 2, 3, 4, 5, 6 | disappeared 7

    Thank you very much for your answer.