i want to make it so each time the player jumps, the jump animation changes, something like this:
first jump
second jump
i want to make it so each time the player jumps, the jump animation changes, something like this:
first jump
second jump
Swapping animation track jump after jump should do the trick. You load both of the animations. Then you alternatingly play the tracks and after finishing playing the first track, the other track would be ready to play and vice versa.
For anyone how is still wanting to know, this is how i did it
in the animate script near line 381
function onJumping()
if jumpSide == "left" and jumping == 0 then
jumpSide = "right"
print(jumpSide)
playAnimation("jump", 0.1, Humanoid)
jumpAnimTime = jumpAnimDuration
pose = "Jumping"
else
if jumpSide == "right" and jumping == 3 then
jumpSide = "left"
print(jumpSide)
playAnimation("jump", 0.1, Humanoid)
jumpAnimTime = jumpAnimDuration
pose = "Jumping"
jumping = -2
end
end
if jumping == 1 then
jumping += 1
end
jumping += 1
end
and the variable you need to add
local jumpSide = "left"
local jumping = 0
probably not the best way to do it but i couldn’t find the answer anywhere else so here you go!