Unity Ninja Unity 3D Forum
To have exclusive access to all downloads, recourses and links within this forum, a free registered account is required. Just a heads up Wink

You are not connected. Please login or register

Unity Ninja Unity 3D Forum » HELP » Help (General) » Created a Minimap but can't get it to follow the player

Created a Minimap but can't get it to follow the player

Go down  Message [Page 1 of 1]


Member [Lv. 0]
Member [Lv. 0]

I'm using Unity Version 5.5.0f3.

I created a minimap thanks to a tutorial I found online. It looks great. Only problem is, it doesn't follow the player when I test the game.

I tried attaching different scripts, but nothing seems to work so far.

Anybody got some advice on how to do it on this version of Unity?


View user profile


Some ideas to fix this: Make a script that constantly changes the position of the camera to the position of the player except on a certain y position.
var plr : Transform;
var y : float;

function Update () {
transform.position = Vector3 (plr.position.x, y, plr.position.z);

Or, you could just put the camera into an unrotated child of the character (or just under the character). If you want the camera to stay at the same y position the whole time, just create some simple code.

View user profile

Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum