Motion tweening, B3D

Blitz3D Forums/Blitz3D Programming/Motion tweening, B3D

Hi Jhocking,

First:
ANIM_WALK=1
ANIM_RUN=2
ANIM_BLAH=3
ANIM_SHOOT=4

ExtractAnimSeq p\entity, 190, 200    ; WALK, ID 1
ExtractAnimSeq p\entity, 190, 200    ; RUN, ID 2
ExtractAnimSeq p\entity, 190, 200    ; BLAH, ID 3
ExtractAnimSeq p\entity, 190, 200    ; SHOOT, ID 4
TRANSITION=10


and then later, from a not yet animating entity:

Animate p\entity, 3, 1, ANIM_SHOOT, TRANSITION


ANIM_SHOOT etc are constants to make it more readable.