But is there a way to change that animation’s speed midway though playback? For instance, varying the speed of walk cycle depending on that character’s velocity?
One problem I encountered is that calling this code every frame to pass in “speed = velocity” will reset the action to frame 1.
If you need to trigger the code all the time it might be worth to switch to property mode of the action actuator. With the property you get full control over the animation. Just don’t forget you need to activate the ActionActuator everytime the property changes.