I tried to make the animations go back to their first frame when switching animations, and it kinda worked… but now the animations don’t play anymore, they just stay at the first frame. except for the idle and walk, those still animate. i’m not sure what’s making everything else not animate though.
FFR 1.3.29 (patch 5)5-18-2021_16-25-40.wick (1.3 MB)
edit:
didn’t provide any context before.
- this is the function i’m using.
- every character’s animations is a clip named “anima”.
- all of the animation switching stuff uses this new function, obviously.
edit 2:
i added a console.log inside the if loop that goes like this (add it yourself if you want):
WARNING: IT WILL LAG WHEN THE CONSOLE PRINTS. the code is in here.
console.log("set " + p.char.currentFrameName + " to frame 1, went to " + animName + ", and playing animation")
i learned that idle and walk only print this once (at the beginning of the animation) and everything else constantly prints it, every frame. (i think it’s everything else, maybe didn’t try all the attacks) things like jumping and falling are included in that constant reset. i’m not sure why everything else bypasses the if case, but it does, i guess.
also, the p.char.anima.play()
is just a safety. not sure how good it will be at saving anything though.