#Problem concerning running multiple animations at one.
1 messages · Page 1 of 1 (latest)
Can i see the
code?
Okay
Wait a lil
This is the entire code for the pet
This is the part for animations. Simple
I have a folder of animations inside the pets that all executes when the script is ran
sorry
that line
means you're playing all the animations in "Animations" group
thats why it plays multiple animations.
what is it supposed to do?
@tribal snow
yes, but the thing is look
i got one animations for the flapping of the fly's wings
and an other one for the fly's entire body to move perdiodicly vertically
but if you look at the start of my video
the fly's wings during the run time doesnt match move vertically proportionnaly to the body
im gonna make an other video to illustrate my point
Doing what
fixing it?
Ohh you wanna play the flapping animation and flying animation simultaneously?
those are the 2 animations
as you can see everything is right when i launch them separatly
now look at the start of this video
** You are now Level 3! **
thx ❤️
have you tried delaying the animation by a 0.5 milisecond to see if it would still happen?
nope i havent
yes ?
Did you make the animations?
yes
try doing that, if it doesnt fix it.. well, idk what else to say
its a CFrame following movement, and a possible Looped animation
You only moved the flaps in the flapping animation? cuz If you did add keyframes for the torso and other body parts, playing animations that move the torso as well would cause unexpected overlapping
it probably loaded too fast and misplaced the wings
So I'm just asking if you moved only the related Motor6d joints in the animations
and not added unnecessary keyframes
its not like that
well damn,
in the flapping animation i only rotated the wings a certain way
wait, did you use CFrame animation, or an animation like this?
oh my no i havent heard of that lol that looks crazy
none
so you used the animation avatar editor?
the default one?
Hm. In your scripts, try specifying the animation priority of the flapping one to idle, and flying one to action
is the one you're using better ?
its basically the same thing lol, one just has addional features
try running both at once
something like this
local flapTrack = animator:LoadAnimation(flapAnim)
flapTrack.Priority = Enum.AnimationPriority.Idle
flapTrack:Play()
local swayTrack = animator:LoadAnimation(swayAnim)
swayTrack.Priority = Enum.AnimationPriority.Action
swayTrack:Play()```
just try running the animation for now
okay im gonna try this out ill be right back
Only tell me if both animations work together as supposed or not
** You are now Level 9! **
For two animations to work together, you gotta avoid adding keyframes for the same joints in both animations.
its worse now...
now the wings just rotate they dont move
like is it the flapping not working properly
its the swaying that doesnt work properly
when the sway happens every part of the rig should follow vertically
like this
I think there is modification of common joints in both animations
What you should try is tweak the AnimationWeights
But before that
Try changing the animationPriorityi
once again
Increase priority of the animation you want to have more influence
thats what im doing and it doesnt seem to get any better
i truly think its because of a detail i forgot to mention
between the time ive made the 2 animations
with the rig editor plugin
i had to tweak the joints of the rig
so this i could move the body upwards
So you made one animation, and re-rigged then made the other?
yup
hmm. If you think that might be the culprit
y not remake the animation
you made the sway one later?
yes the sway one later
But both work alright individually right
It shouldn't be the issue then
uhm mb ill brb
Is it fixed? If not have you tried animation priority?
soo ive redid them and the problem remains...
this is interesting tho can somebody explain to me what that is ?
Im sry for this ghosting streak im on
ill explain it.
So basically the animation weight is like the influence scale
if one got weight of .5 and other got weight of 1, the first one has 33% influence and other one has 66% influence on how the joints will move
It sort of blends to animation
flapTrack:AdjustWeight(1) -- Full control
swayTrack:AdjustWeight(0.5) -- Half influence (blends with flap)```
im gonna try this one out
hey wait
If it doesn't work the way you want, just tweak the weight
increase for more influence and vice versa
i mean the other way around
well i know already how i can "fix" it but its sad that the studio coudlnt help me and i have to resort to that method
what method
just gonna have to make it so that the flapping animations also move the wings with the same length as the other animation and every milliseconds reorienrate the wings so that they still flap
just hang on, ill find a fix for u
Hey OP
@tribal snow
I recreated the kind of setup you have in your game. It works just fine for me. Perhaps the problem's got to do with the animation you made.
local a = script.Parent.Humanoid.Animator
local f:AnimationTrack = a:LoadAnimation(a.Fly)
local i:AnimationTrack = a:LoadAnimation(a.Idle)
f.Priority = Enum.AnimationPriority.Action
i.Priority = Enum.AnimationPriority.Idle
f:Play()
i:Play()```
This is the script i used
Im gonna try this one out
** You are now Level 4! **
Im currently eating right now tho
Yk if you dont want the animation to play at the same time you can also just do: for i, tracks in tracktable do
Repeat wait() until track.isplaying == false
End
i was eating french fies and chips !
alright im back im gonna try your script
i think because the fly is always moving around its never truly idle so the flapping doesnt work
its a hell of a thing i think yeah like you said its my animations its truly just a small this itself im just gonna focus on bigger things for now thank you for all the help @edgy junco if i could rank you id rank you 5 stars
uhm
I guess it's okay but. I'll just show you the animations I made for the purpose of helping u understand better
This is the idle animation
and this one's the flying one
And this is both combined using the script I sent: https://screenrec.com/share/YdxyeqgAuL
mhm you made me thought of something
what?
nope doesnt work