Animate Command - how to choose certain sequences?

Blitz3D Forums/Blitz3D Programming/Animate Command - how to choose certain sequences?

Blitzplotter(Posted 2014) [#1]
Hi, I'm loading an animated image using the following code:

Global PlayMale = LoadAnimMesh("./include/models/HumanAx.b3d")

malecamref=PlayMale

ShowEntity PlayMale

RotateEntity PlayMale,270,90,0




And then animating it with the following:


Animate PlayMale,1,1,0,1



The AnimMesh I am loading is made up of the following anim sequences:

walk: 0-30
run: 31-51
stand: 52-97
idle: 98-328

I've tried changing the third attribute of animate to 31 - however the model fails to animate with this.

Do I have to load a specific range from the LoadAnimMesh into three separate models using the appropriate ranges for each animation (PlayMalewalking, PlayMalerunning, and PlayMalestanding) and then display each one accordingly?

Or can I elect to simply animate through anim sequence 31 to 51 of the whole models anim range if I want him to run?

Thanks, BP.


RemiD(Posted 2014) [#2]
What i do :


For some animations you will need to use AnimTime(CharacterMesh) to know when to stop an animation and to change the CharacterState and to play another animation.


Blitzplotter(Posted 2014) [#3]
RemiD, thanks for the swift feedback , it is really appreciated.