Is there a way to choose the first frame of an atlas flip-book animation? Here’s my use case:
I have a object who can walk in 4 directions (up,down,left,right). For each of these animations, the first frame is a left foot forward, second frame is right foot forward. If a user is rapidly changing direction, calling msg.post(…,“play_animation”) is going to constantly be resetting to the 1st frame of each animation, so it looks like the object is not really “walking”, but just standing on one leg and changing direction!
What I’d like to do is something like keep track of which frame is going and call something like msg.post(…,“play_animation”, {id = hash(“move_left”), frame=2}). Is there any way to do that, or another suggestion for how to accomplish this?