title: Move simple Object in Unity 2D
body: <p>I'm trying to move a simple <code>Object</code> in Unity but I get the following error message:</p>
  
  <p><code>cannot modify the return value of unityengine.transform.position because itar is not variable</code></p>
  
  <p>Here is my code:</p>
  
  <pre><code>using UnityEngine;
  using System.Collections;
  
  public class walk : MonoBehaviour {
      // Use this for initialization
      void Start () {
  
      }
  
      // Update is called once per frame
      void Update () {
  
          float movespeed = 0.0f;
          movespeed++;
          transform.position.x  = transform.position.x + movespeed;
  
      }
  }
  </code></pre>