Search Unity

Multiplayer Tower Defense Game Enemies on Map 1 Floating to Map 2's Waypoints Upon Spawn

Discussion in 'Multiplayer' started by pinzhi, Oct 9, 2019.

  1. pinzhi

    pinzhi

    Joined:
    Oct 3, 2019
    Posts:
    2
    We are trying to build a multiplayer tower defense game. Right now we have 2 players and each one plays on his / her individual map.

    After we connect through a client for the second player, our spawned enemies from our first map float over to our second map.

    The enemies should be following the waypoints we've set on the first map. Instead they go over to the second map and follow the second map's waypoints.

    Right now, we have a playerobject. And we disabled anything not local to the current player.

    upload_2019-10-9_15-0-37.png

    Below is how our folder structure currently looks.

    upload_2019-10-9_15-1-8.png

    The gif below shows what's happening when we try to play the game with 2 players.



    Any thoughts on how to get our spawned enemies in map 1 to follow only map 1's waypoints?
     

    Attached Files: