2D Toolkit Forum

2D Toolkit => Support => Topic started by: cortheya on February 19, 2013, 04:54:45 am

Title: I'm at a loss here. How to move character sprite?
Post by: cortheya 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.
Title: Re: I'm at a loss here. How to move character sprite?
Post by: Logon 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);
}