Topic was automatically imported from the old Question2Answer platform.
Asked By
nooberdev
hi.
i want to check how far into an animation my node is. as an example, i want to check for button input during the last 2 out of 6 frames of an animation, so i can transition into another animation. if the input is true AND the animationplayer has reached a certain point at the current animation, i want to transition into another animation.
how do i check if i reached a specific time/frame during an animation?
is the seek() member function of the animationplayer node for this kind of things? i could not find an explanation online what the seek() function does.
ok now i have added a function call in the animationplayer setting a bool. i hope this works out.
this solution worked. i just set a function call at the desired time and switched a bool to true. at the start i have set a function call to switch the bool to false. sometimes you gotta squeeze your brain.
nooberdev | 2018-07-14 16:39
It’s wonderful that you figured out the question. Though is there any way you can show some of your code?
Ertain | 2018-07-14 17:30
It is still spaghetti code at this point and i doubt that it could help anybody out, but User Diet Estus’ solution is now what does the job in a more elegant way than it was before.
Sorry for late reply, went on vacation.