Hi Paul
Sorry, it's my fault, I have though the starttime and endtime (PlayObjectAnimation( objID, animName, starttime, endtime, loop, tweentime ) ) was in frame, not in second.
IT work fine with your code, or if I use seconds.
I have tried with :
PlayObjectAnimation( 1, "", 1, 20, 1, 0 )
So it didn't work with that code, because, it start at the end of the animation.
I always work in frame not in second, when I create my animation, I have to change my workflow ^^.
So we have to convert the frame into second, I guess.
If I have a character with 3 animation, with 60 frames :
- 0-20 : walk
- 21-40 : attack
- 41-60 : die
I have to use (for 60 frames)
walk -> PlayObjectAnimation( 1, "", 0, 20/60, 1, 0 )
attack -> PlayObjectAnimation( 1, "", 21/60,40/60 , 1, 0 )
walk -> PlayObjectAnimation( 1, "", 41/60, 60/60, 1, 0 )
Sorry for the false report.
PS :
It's strange, because with a .x file, my previous code works (PlayObjectAnimation( 1, "", 1, 20, 1, 0 ))
AGK2 tier1 - http://www.dracaena-studio.com