Hello Guest

Author Topic: I'm at a loss here. How to move character sprite?  (Read 3248 times)

cortheya

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 14
    • View Profile
I'm at a loss here. How to move character sprite?
« on: February 19, 2013, 04:54:45 am »
Yeah I just want to move the sprite around to make the character move. I'm totally new with this and it's confusing.

Logon

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 20
    • View Profile
Re: I'm at a loss here. How to move character sprite?
« Reply #1 on: February 19, 2013, 06:55:31 am »
Put a script on the character sprite

add this code in update

if(Input.GetKey(KeyCode.W))
{
      this.transform.position += new vector3(0,2f,0);
}