Hello Guest

Author Topic: About X,Y  (Read 4016 times)

ironquark

  • Newbie
  • *
  • Posts: 14
    • View Profile
About X,Y
« 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
« Last Edit: October 10, 2013, 05:57:47 pm by ironquark »

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: About X,Y
« Reply #1 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

ironquark

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: About X,Y
« Reply #2 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!!!