2D CameraController Script
So I am following the 2D tutorials on this site and I'm learning how to program the camera to follow the player game object in the UFO tutorial. My script matches the one in the video exactly however there is a problem. In the script component for the camera there is supposed to be a property called Player. I am supposed to drag the player game object to this property so that the script knows what the camera needs to follow. However there is no Player property. There is just a speed property and when I tried to test the game a bunch of error messages popped up saying the same thing. That there has to be a Rigidbody2D component on the camera. Can anyone please tell me whats going on here?
"$$anonymous$$y script matches the one in the video exactly however there is a problem. "
It probably isn't the same:
"In the script component for the camera there is supposed to be a property called Player. "
Post the code and screenshot of your hierarchy / inspector, if you haven't got it fixed already.
Your answer
Follow this Question
Related Questions
Simple Host - Client Callback 0 Answers
How can I make the camera not overreach a limit of rotation one axis. 0 Answers
Why Does My Camera Jitter When Following Player? 0 Answers
Save Stations like in Dead Space and Resident Evil VII 0 Answers
How do I make somthing happen when the Player reaches a certain x, y, z position? 0 Answers