Game Development Community

Question about animation

by Alejandro Lopez · in General Discussion · 05/28/2008 (7:24 pm) · 2 replies

HI, i try to make a basic animation works.

i am making the animation of a human arm.

after export the DTS, i call the $jugador.playThread(0, "Lanzar" ); method and has 2 problems.

first , the animations is showing correctly but i see 2 arms , the normal , and the animated.
second, how can play again the animation, i am calling playThread again , but nothing happens.

Thanks a lot.

#1
05/29/2008 (5:20 am)
If you use playThread(0, ...) to run an animation you have to stopThread(0) to terminate that animation thread so you can play something else.

You could also try $jugador.setActionThread("Lanzar") if $jugador is a Player or AIPlayer. This function doesn't require you to stop the thread and you can also interrupt it and change it mid sequence.

And if you're seeing two arms when you tell it to play, it sounds like you're actually getting two objects spawned in the same location.
#2
05/29/2008 (10:44 am)
Is there any way to move the animation frame by frame, like manual update ? or how can i control the animation.

this is my idea , ..i want to move an arm (mesh model ) with the mouse, if i move the mouse forward , i move the arm forward, and same to backward. ( left and right just move the cam.)

any ideas?

is there any way to know if the animation is still playing ?