- Modifié
Mix 2 animations in different frames
Hi, I'm having trouble mixing 2 animations.
Firstly I have a spine file and have 2 animations working on it. includes "run" and "walk".
- when the run anim is running a certain number of frames I want to switch to the "walk" animation and want the anim walk to play in the correct frame where the character file is in the animation run
You can use TrackEntry trackTime to set the timepoint of animations.
TrackEntry is returned when setting an animation via AnimationState.SetAnimation()
or AnimationState.AddAnimation()
. Alternatively you can query the current TrackEntry via AnimationState.GetCurrent(int trackIndex)
.