[SOLVED] Animation Finished question

Hey there…
these days while creating some transitions animations…
i stumbled across a weird thing,…and before calling it a bug…i would like to have your opinions…
basically i have this that doesn’t work

instead…


this works

…now i would like to know:
why the first animation finished works and the other don’t…
I’ve fixed it with checking frame number that i don’t realy like in general.

Now, i know there is no trigger once,…but if the frame number works…it means…that the animation plays and frames are counted properly…why the finishewd doesn’t works insted…
asking bcs the group right above have no issue.

Is walking animation is set to loop? And the turn animation set to not loop?

wait gonna check a min
…yes walk is looping, turn don’t

So if it’s looping, when does it end?

1 Like

I understand so…the finished means not at frame but while playing…
so i’m forced to check the frame number…? there is no other option?

Instead of hardcoding the frame number, you could check the current frame number equals p1.AnimationFrameCount()

1 Like

ok …that is basically the true animation finished meaning…
thx mrmen

1 Like

ok…sry for being dumb here…but u meant this…?


cos it doesn’t work…
it doesn’t trgger while the frame count=30 does…
mmm…i wonder if i have to trigger it once…ok…nope it seems not the case…

if it can help i have text debugged p1.AnimationFrameCount() and the frames are indeeed counted properly

Ok

this


works

bcs frame 0 is counted…and you need a number.

1 Like

My bad, sorry. I forgot the zero based index. Thanks for including your working solution.

1 Like

It’s fine …lol…i’m just slower at getting things XD.