       result = animation if animation.name.toLowerCase() == nameLower
 
     return result  
+
+  updateSprite = (spriteData) ->
+    I.sprite = spriteData
+    I.width = spriteData.width
+    I.height = spriteData.height
 
   ###*
   Transitions to a new active animation. Will not transition if the new state

      firstSprite = I.spriteLookup[firstFrame]

      I.currentFrameIndex = 0
      I.sprite = firstSprite
      I.width = firstSprite.width
      I.height = firstSprite.height 
    else
      warn "Could not find animation state '#{newState}'. The current transition will be ignored" if I.debugAnimation



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

    updateSprite(sprite)

  find = (name) ->
    result = null
