Hi, can anyone please tell me how to make and object follow me from anywhere in the map as i am very new to Unity
There are many solutions, I will show the most common:
Easy and ugly way: attach the object to you; you can do this by dragging it over you or by script with followerObject.transform.parent = you.transform
.
It will remain at the same distance but is very very ugly (help me to say ugly)…
Complicated and beautiful way: write a script that change the followerObject.transform.position… Look at the ThirdPersonCamera script, I learn from it…
I suggest to read this link text and continue until it says Next in bottom of the page… You will learn much more that you think
(I hope that you understand my english, forgive me if not )