I need help with an animation

I am trying to make an animation so when the character hits a spring it does a back flip( btw my game is block hop advanced so please check it out)

take one of two options

  1. turn the sprite 360 degrees using timer and number. no animations included
  2. make animation and take 4 frames and turn the sprite using rotate