Search Unity

2d character moving

Discussion in 'Scripting' started by Kruno88, Mar 31, 2015.

  1. Kruno88

    Kruno88

    Joined:
    Mar 27, 2015
    Posts:
    9
    How can I make a 2d character controller?I'd like to move it with arrow keys...THnak you very very much!
     
  2. Roderyk

    Roderyk

    Joined:
    Mar 5, 2015
    Posts:
    75
    You have to modify the position of it's transformation along the horizontal or vertical input and multiply it by Time.deltaTime to make a smooth transition.

    Check for tutorials or search the forum. This question had been answered many times already.
     
  3. Kruno88

    Kruno88

    Joined:
    Mar 27, 2015
    Posts:
    9
    Can you post a link?
     
  4. Roderyk

    Roderyk

    Joined:
    Mar 5, 2015
    Posts:
    75