- Home /
SpriteManager 2
Hey everyone i'm using Spritemanager 2 to do my animations and right now its not working... I added animations to the timeline and named and numbered them and this is my script link text
but when I move the player the animation doesn't player... I am using a packed sprite..
Here are some images..
Please help guys :D Thanks!
-Kevin
A basic question. You did build the atlas before you ran the app? Put CharacterSprite.PlayAnim(0) in Start() to separate out PackedSprite issues from your code logic issues.
Answer by xReaper7x · Mar 26, 2013 at 05:08 AM
Yes I did build atlas..and OK i will try it tmrw what happens if its the animation?
I've never had a bad PackedSprite. It is possible it is the material. I've occasionally had problems building the atlas. Sometimes my bad atlas has been the result of doing an atlas build while the app is running. To isolate the problem, force it to play in Start().
Another common reason why a packed sprit does not show up is that you have not set the width and height. You have to set the width and height in the packed sprite component (and leave the scale in the transform at (1,1,1). The size is in world corrdiantes, do usually I just set them both to 1 and then adjust later.
ok ya it works if it's in start... What should I do so it works in my code?