2D Toolkit Forum

2D Toolkit => Support => Topic started by: ironquark on October 10, 2013, 05:55:40 pm

Title: About X,Y
Post by: ironquark on October 10, 2013, 05:55:40 pm
Hello

After opening spider.unity demo

How I can create a script in c# and set to control x and y of the position of the spider sprite? using for example the keyboard to move the sprite....

Regards
Title: Re: About X,Y
Post by: unikronsoftware on October 10, 2013, 09:51:15 pm
You move the sprite the same way you move anything in Unity.
Something like this?
http://answers.unity3d.com/questions/173352/move-a-ball-using-keybored.html
Title: Re: About X,Y
Post by: ironquark on October 11, 2013, 10:54:31 pm
You move the sprite the same way you move anything in Unity.
Something like this?
http://answers.unity3d.com/questions/173352/move-a-ball-using-keybored.html

Thank you its working!!!