1
Support / Re: Switching the Anim Lib in tk2dAnimatedSprite objects
« on: June 13, 2014, 07:00:25 pm »
Exciting news! Scratch my last couple of posts.
I can get the sprite animations to change to the female sprite, by using var sprite : tk2dAnimatedSprite, and changing sprite.anim to my loaded prefab.
However, there is still a slight problem: when one jumps into the game, they appear as a male at first and the sprite only changes once you start moving. This happens at the start of every level. Could this have to do with the fact that we are controlling this variable using our playerMovement script? Obviously, it is unacceptable to start as the male and then magically transform into the female, so I would like to clear this problem up. Thanks so much for your help so far, couldn't have done it without these forums (at least, it would have taken far too long ).
I can get the sprite animations to change to the female sprite, by using var sprite : tk2dAnimatedSprite, and changing sprite.anim to my loaded prefab.
However, there is still a slight problem: when one jumps into the game, they appear as a male at first and the sprite only changes once you start moving. This happens at the start of every level. Could this have to do with the fact that we are controlling this variable using our playerMovement script? Obviously, it is unacceptable to start as the male and then magically transform into the female, so I would like to clear this problem up. Thanks so much for your help so far, couldn't have done it without these forums (at least, it would have taken far too long ).