Today i am gibing you very simple yet cool Unity 2d Camera Follow Script with smooth follow and other useful options.
Very easy to setup just add this script to your camera and then drag your character or anything you cant to follow into the script's target field, Like i added character in this field, finish :)
Script is here or get it from github.
target = GameObject.FindObjectWithTag("Player");
ReplyDeleteI have a weird problem, when I attach to my camera, and add to the target my player... the camera zoom to my player and don't stop.. zoom to the infinite hahahah .. any clue for what is happening?
ReplyDelete