- Home /
Text displays during animation
I have an object that allows you to click on it, then an animation plays of your person investigating it. Is there a way to add a little word box to the bottom of the screen, that tells what your person is saying? It would be nice if this was possible to do in an animation event, so I could time it perfectly.
Thanks in advance
Answer by BLarentis · Aug 23, 2012 at 05:42 PM
Hello, you can check the animation["animationName"].time. (This variable represents the time that your animation is). So you can check the time that you want the text to come in, and do something like this:
if(animation["animationName"].time == timeForTextToComeIn){
//Code to active Text
}
Take care !
Your answer
Follow this Question
Related Questions
Animated Object phases through Player 2 Answers
3d animation controller 0 Answers
How can I add Animation to this player movement script? or do I have to create a totally new one? 0 Answers
Animation Crossfading and Events (Legacy) not triggering at times 0 Answers
My character doesn't animate when I try to move him 0 Answers