2D Toolkit Forum

2D Toolkit => Support => Topic started by: nicntj on April 28, 2013, 01:51:28 am

Title: How do I get my animatedSprite to actually move?
Post by: nicntj 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!
Title: Re: How do I get my animatedSprite to actually move?
Post by: unikronsoftware 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.