16
Technical forum / Actor back to default animation
« on: April 11, 2013, 12:13:56 PM »
I know it will sound stupid to most of you, but I've got this problem...
I need my actor to change his idle animation after a certain action and to obtain this I used the code:
The problem is I don't know how to go back to normality! If I use this code the actor will ALWAYS use "defaultposter.sprite".
Probably there must be a simple function to obtain what I need, but I can't find it!
Can somebody give me a help?
I need my actor to change his idle animation after a certain action and to obtain this I used the code:
Code: [Select]
actor.SetSprite("actors/Lars/ul/defaultposter.sprite");
The problem is I don't know how to go back to normality! If I use this code the actor will ALWAYS use "defaultposter.sprite".
Probably there must be a simple function to obtain what I need, but I can't find it!
Can somebody give me a help?