Spine animation

hello everyone I have one spine jump animation when I click the button. The object will jump according to the given velocity when it was in the air it needs to play different jumping animations we have any chance to add velocity to spine animation so I can handle that easily? currently animation jumping two-step over a given velocity and coming back to the same position.
anyone has some suggestions on how to handle this situation please help me

//code sample how am trying to solve

function update_animation(self)
spine.play_anim("#mspine", "Jumping", go.PLAYBACK_ONCE_FORWARD)
end

if message_id == hash("jump") then
if self.ground_contact  then
update_animation(self)
self.velocity = vmath.vector3(173 , jump_takeoff_speed - 500 , 0)  
end
end

Have you tried the playback_rate in the options to the play_anim call?
Documentation

yes I tried but I didn’t see any changes.

here problem is I can’t able to add velocity to animation so am adding velocity to object am calling update animation so animation taking extra two steps and according to velocity it’s coming back to exact location.

possible please share line of code.
currently am playing animation like this
spine.play_anim("#spine", “Jumping”, go.PLAYBACK_ONCE_FORWARD , properties , anim_done)

What do you set in the properties?

sorry for late replay am setting blend_duration = 0.15

So, what happened when you set playback_rate = 2.0 ?

no changes :(. animation playing two times once velocity trigger after once it’s jumping like this image.

I’m not sure why the playback_rate doesn’t work the way you want it to.

Here’s what it looks like for me when I play it at 1x and 2x the speed, using:

gui.play_spine_anim(gui.get_node("spine"), "walk", gui.PLAYBACK_LOOP_FORWARD, {playback_rate = 2.0})

(1.0 speed to the left, 2.0 speed to the right)

1 Like