Camera Animation by using States
Posted: 27 Feb 2012, 20:39
I've run into yet another problem... Hope you guys can help!
I've created an animation with different states and each state of course has a different position, tilt and pan value. When I press a certain button from the main menu in my scene, the camera moves from state 1 to state 2. I've done this by binding a a toggle node to the button and to the "next" property of my state animation. Now here is where I run into my little problem. When the same button is pressed again, I want it to move from state 2 to state 1 and NOT state 2 to state 3. So that specific button needs to toggle between state 1 and 2 at all times and ignore the other states. What is the easiest way to set this up?
I still need the other states though (for example if the user presses a different button in the submenu, I DO want the animation to go from state 2 to state 3) So I can't just delete them.
I hope all of this make sense, I confuse myself at the best of times.
Thanks,
Vincent
I've created an animation with different states and each state of course has a different position, tilt and pan value. When I press a certain button from the main menu in my scene, the camera moves from state 1 to state 2. I've done this by binding a a toggle node to the button and to the "next" property of my state animation. Now here is where I run into my little problem. When the same button is pressed again, I want it to move from state 2 to state 1 and NOT state 2 to state 3. So that specific button needs to toggle between state 1 and 2 at all times and ignore the other states. What is the easiest way to set this up?
I still need the other states though (for example if the user presses a different button in the submenu, I DO want the animation to go from state 2 to state 3) So I can't just delete them.
I hope all of this make sense, I confuse myself at the best of times.

Thanks,
Vincent