Let’s say that I have a 2D lateral scroll game with:
A running animation with 20 frames starting with the left feet
A walking animation with 40 frmaes also starting with the left.
I know that If the player is walking and I play running, this one is going to “overwrite” the walking animation. But let’s imagine that our player is about to land it’s right feet while he is walking and I try to run. The problem is that now, suddenly, the player has its left feet on the floor.
Can I make something like this in any way?:
msg.post("#player", “play_animation”, {id =hash( “run”) }, startFrame = 20)
I also wondered about this, but wasn’t able to find a way to do it.
In short I was looking for a way to get and set the current frame of an animation. This would allow seamless transitions between animations, like @jimmyga7 describes above.
This is currently not possible. You need to create separate animations or do the entire animation through code to achieve this. It’s in the backlog though as its a quite frequent feature request.
Hmm, I thought you could set cursor on these animations as well just like go.animate and spine animations but I cannot find anything about it in the docs.
Maybe that should be added to this as well?