Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

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