Hello
Guest
Home
Help
Search
Login
Register
2D Toolkit Forum
»
2D Toolkit
»
Support
»
I'm at a loss here. How to move character sprite?
« previous
next »
Print
Pages: [
1
]
Author
Topic: I'm at a loss here. How to move character sprite? (Read 4437 times)
cortheya
2D Toolkit
Newbie
Posts: 14
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.
Logged
Logon
2D Toolkit
Newbie
Posts: 20
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);
}
Logged
Print
Pages: [
1
]
« previous
next »
2D Toolkit Forum
»
2D Toolkit
»
Support
»
I'm at a loss here. How to move character sprite?