UPDATE

Ok so I downloaded the 3D Platform Tutorial and had another go at it. I recorded the whole thing in a video. I got better results this time. Lerpz’s walk animations actually kick in when I move him around but when he stands still his arms shoot up and down over and over again. Perhaps his fall animation is being called for some reason while he is standing still? Also I got no errors this time so I assume I followed the tutorial perfectly.

Here is the video:

http://www.youtube.com/watch?v=L4VF6TVPgj8

OLD POST##

In Chapter 2 named First Steps of the 3d platform tutorial I can get as far as the Animating Lerpz section and then I hit a major error. Lerpz’s animations will not kick in when I try moving him around. I have no idea what is going on. Here are two screen shots of the Inspector showing the Player and Near Camera objects (to prove I have the component scripts in the right place):

alt text
alt text

When I press play and move Lerpz around he just has his hands in the air and floats around. I made a video of it here at Youtube:

http://www.youtube.com/watch?v=KxEgy7q_koE

Additionally, I noticed I am getting two errors in the console. Here they are:

alt text

Line 21 of SpringFollowCamera.js has this code:

	var characterController : CharacterController = target.collider;

alt text

Line 40 of SpringFollowCamera.js has this code:

var targetHead = target.position + headOffset;

Any ideas on what is going wrong and how to fix it?

Loosing faith in the tutorials Unity3d is providing.

If you click on your NearCamera and look in the inspector you’ll see that you have accidentally added 2 instances of the Spring Follow Camera script. The first one has its target set to the Player. The second one does not have a target set. That’s why it seems like the camera is working (because the first instance moves toward the player) but the second instance throws a runtime error and probably nukes the game.

I have not faced this error myself, but as the log reads:
“you probably need to assign the target variable of the springfollowcamera script in the inspector”.
This might not mean much to you now, but it basically says that you need to drop the lerpz gameobject into the ‘target’ slot of the ‘springfollowcamera’ script attached to the camera, if I remember correctly.