Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

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

Discussion in 'Connected Games' started by pinzhi, Oct 9, 2019.

  1. pinzhi


    Oct 3, 2019
    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.


    Below is how our folder structure currently looks.


    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: