Search Unity

  1. We have added dedicated sub-forums for UNet, the experimental MLAPI and Unity Transport Package. Please use the new forums to discuss related topics.
    Dismiss Notice
  2. How can our website serve you better? Give us your feedback. Take our survey and let us know.
    Dismiss Notice

Help Wanted Constant movement of multiple players

Discussion in 'Multiplayer' started by paklaing, Jul 17, 2021.

  1. paklaing

    paklaing

    Joined:
    Sep 27, 2020
    Posts:
    2
    So, what I'm trying to do is create a script that will constantly move every player in the game x amount, however, the player.transform.position = new Vector3() code isn't able to move 2 things at once, so what I've done is created a parent empty gameobject, parented both players to the empty gameobject, then instead of moving the player, I move the parent object which should then move all the children. However what is happening is that the parent is being moved and so is one of the children, but not both/all of them. I need help on how to make it move every player at once.

    (by the way this is not for a playermovement script, it is for a script that moves every player along a track at the same time)
     
    pinkkikirarapink likes this.
  2. pinkkikirarapink

    pinkkikirarapink

    Joined:
    Jun 21, 2021
    Posts:
    3
unityunity