PDA

View Full Version : Playing animation backwards


krimble
10-01-2009, 09:09 AM
Hi all,

I have a spider that comes down from the ceiling. The spider has an animation that makes the legs move against a thread that is hanging from the ceiling.
Now I want to make the spider go up towards the ceiling. The move action works, but the legs still move as if the spider is going down. If I can play the animation backwards, the legs move as if the spider is going up.

I tried this code, but it doesn't play the builtin animation backwards:

spider[i].state(1)
spider[i].addAction(act2)
spider[i].setAnimationSpeed(1,-1)