- Home /
Question by
Projekt-Krieg · Apr 14, 2013 at 11:21 AM ·
speedbackwardsanimation.play
Animation Speed Problem
I try to Play a Animation Backwards, but i stuck and cant locate the misstake.
This is my Script:
function maintooptions () {
animation.Play("maintooptions");
}
function maintochose () {
animation.Play("maintochose");
}
function backtooptions () {
animation.Play("maintooptions").speed = -1;
}
and this is the shown Error:
Assets/Scripts/Menue/Camerascript.js(11,53): BCE0019: 'speed' is not a member of 'boolean'.
Comment
Best Answer
Answer by MartinCA · Apr 14, 2013 at 02:55 PM
animation["maintooptions"].speed = -1;
animation.Play("maintooptions");
You can't string these functions, since animation.Play() returns a boolean value;
Answer by Daphoeno · Apr 14, 2013 at 11:47 AM
for (var state : AnimationState in animation) {
state.speed = -1;
}
this will make the animation go backwards
Your answer
Follow this Question
Related Questions
Strange problem with crouch script 0 Answers
[Unsolved] Playing animation backwords [Unsolved] 1 Answer
Movement Backwards is Slower 0 Answers
how to slow down speed increase? 2 Answers
How To: spawn succesive waves of enemies increasing their speed 1 Answer