       firstSprite = I.spriteLookup[firstFrame]
 
       I.currentFrameIndex = 0
-      I.sprite = firstSprite
-      I.width = firstSprite.width
-      I.height = firstSprite.height 
+      updateSprite(firstSprite)
     else
       warn "Could not find animation state '#{newState}'. The current transition will be ignored" if I.debugAnimation
 

      result = animation if animation.name.toLowerCase() == nameLower

    return result  

  ###*
  Transitions to a new active animation. Will not transition if the new state


    sprite = I.spriteLookup[frames[I.currentFrameIndex]]

    updateSprite(sprite)

  find = (name) ->
    result = null
