www.jpct.net

Bones - Skeletal and Pose Animations for jPCT/jPCT-AE => Bones => Topic started by: bili on February 05, 2012, 06:48:51 pm

Title: multiple action timing
Post by: bili on February 05, 2012, 06:48:51 pm
I can create a multiple actions like walk->attack1->jump and so on from the ninja model example but the animation happens so quickly that I cant hardly see what the ninja is actually doing. I use a loop to calculate the total cliptime of the sequence and do
Code: [Select]
index = animateSeconds / clipTime;
Finally to animate the whole sequence:
Code: [Select]
group.animateSkin(index, 0); where group is the ninjas.get(0); as I only use one model and have no intent to use more than one. But it doesn't seem to have any effect. Any suggestions?
Title: Re: multiple action timing
Post by: raft on February 13, 2012, 09:53:04 pm
sorry for late answer. somehow i didnt notice this post.

are you sure index is a float? this kind of thing typically happens because of rounding.

also try printing value of index each frame

Title: Re: multiple action timing
Post by: bili on February 24, 2012, 11:28:08 am
Thanks and sorry for late reply, I was just too busy last 2 weeks. Had no time to work on this.

I realised that I did it wrong after looking at the code from the Bones sample files.

Cheers.