Strange Character Controller Issues

Hi,

I am having a frustrating issue with my character controller. Whenever I try and have anything go to it’s location, the GameObject shakes violently and slowly slides down the screen. I have stripped down my entire game down to figure out whats going wrong, and have even recreated the problem. The following is a simple playground I made to recreate the scenario:

I have a character controller (“player”) that is in a 2-D side view space, a floor plane that serves no purpose, and have also created an upright 2d plane (“graphic”). The two objects are not parented to one another. The character controller does not have any movement codes attached to it. The 2-D plane (“graphic”) simply has this JavaScript attached to it:

function Update () {
transform.position = GameObject.Find(“player”).transform.position;
}

However, when I click play the 2-D “graphic” plane shakes violently, going from y=10 to y=3 and so forth.
Attached is an image.

It’s bizarre. Everything was working for about 2 weeks, this exact method of having a graphic follow a character controller. Then all the sudden this came up. It happens in any project I create.

Please help!

-Thomas Brush

Just figured it out.

In case others run into this problem, there are two solutions:

  1. At least in this case, a simple character movement script provided by Unity would have fixed it. However, if some of you have more complicated scripts, and this problem is still happening, then

  2. You may have some form of a corrupt or un-updatable file. In my case, I had to attach a new java script file with a different name, then rename it after I hit play a couple times.