x


How do I use SpriteManager?

Hi, I'm trying to use SpriteManager to play my animations from a texture/atlas. I've looked online and even read the wiki but couldn't find detailed instructions on how to implement a simple animation. At the moment, I already have the 3 files from the wiki, made an empty GameObject and assigned LinkSpriteManager to it. I'm not sure what to write to actually call the animations. Does anyone have any good examples of how to do so?

Thanks.

p.s. I'm told to use LinkSpriteManager because mysprites will be a playable character and will always updates its position. Can someone confirm this? Just like to know what's the main difference from SpriteManager.

-Hakimo

more ▼

asked May 11 '10 at 05:07 AM

Hakimo gravatar image

Hakimo
106 14 18 26

i really need to know this too. there doesnt seem to be anything very detailed at all on the internet.

Aug 15 '12 at 02:45 AM TaylorAnderson
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

this is unityscript.

public var animation : animation;
/*You define this file on your game object, just drag & drop*/
function OnTriggerEnter(){
  animation.Play();
}

All you need to do is define your animation, and this should work. Hopefully this is what you're looking for.

Incase you're looking for how to export an animation into Unity, this can be tricky.

Unity only recognizes animations with models that have bones, along with having to be baked. I suggest using Maya or 3DSMax to do this. I'm not an expert on this, so I can't really give any tips on how to do it properly. You can find videos of how to use bones and how to bake on youtube probably.

Good Luck.

more ▼

answered Aug 16 '12 at 02:24 AM

tw1st3d gravatar image

tw1st3d
105 3 4

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1032
x220
x58
x58
x51

asked: May 11 '10 at 05:07 AM

Seen: 2003 times

Last Updated: Aug 16 '12 at 02:24 AM