- Home /
Dynamic location of 3 player
I am following a simple Navmesh tutorial video and I have developed a game scenario in which the 3rd Player follows or reaches towards the location of 1st player. In this case, when the game starts both the players are initially at different location on the scene. When I run the game, 3rd Player starts running and follows 2st player. As long as the game is running, I can move my 1st player to different locations and the 3rd player continues to follow 1st player.
But I wonder if I can decide the initial position of 3rd player when the game is running - lets assume - by clicking somewhere in the scene. Then the 3rd player appears in the scene at that location and starts following 1st player.
Can this be done?
yes it can be done. make a prefab of your 3rd player. then instantiate the 3rd player prefab at the 1st players location.