• RuntimesUnity
  • Want to add animation on start/end of the animations Like move Stop

I want to apply a animation princepals (anticipation before jump) (sudden stop ) sqeuesh on fall but so far im on sudden stop "walkstop animation"

but i want my sequence to "idle" ....... if pressing button 'walk" .... on "walk" end play "walk stop" animation ..... back to "idle" i dono how do i do that can you explain to me ?

there must be a resuable soltion for this

iammirrr It seems the code you attached does not contain the code you have tried. (There is no line for playing the "walkstop" animation.) I would appreciate it if you could share the actual code you have tried in the future, as it is difficult to tell what you should fix if it is not clear what you tried first.

I recommended earlier in my email to you to check Spine Examples/Getting Started/5 Basic Platformer, have you checked it yet? The way to play transition animations is also demonstrated in it. Check the example script SkeltonAnimationHandleExample.cs attached to the Hero GameObject.

I assume what you want to do should be pretty close to this example scene (5 Basic Platformer), so it would be a good idea to start by using it as is and making some modification based on what you need.