Hello Guest

Author Topic: How do I get my animatedSprite to actually move?  (Read 3339 times)

nicntj

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 5
    • View Profile
How do I get my animatedSprite to actually move?
« on: April 28, 2013, 01:51:28 am »
I just started 2D toolkit today, and I've been doing some tutorials but there isn't one for making the animated sprite actually move. The code that is given in the documentation just runs though the animations. How do I make it move. I know javascript, if that even means anything, and I could probably figure out some C# stuff. How would you guys do it, or how did you figure it out?

Thanks a million!

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: How do I get my animatedSprite to actually move?
« Reply #1 on: April 28, 2013, 01:54:58 am »
You should probably run through some Unity tutorials. The way you make a sprite move is the same as what you'd do with any object.

sprite.transform.Translate( x, y, z );
There are a lot of other ways of making this happen, which should become clear once you go through some Unity tutorials.