     @sprite.position.y = state.y
     if @sprite.animations.currentAnim.name != state.anim
       @sprite.animations.play(state.anim)
+      @sprite.body.drag.set(DRAG, DRAG)
     if state.skin && @skin != state.skin
       @skin = state.skin
       @sprite.loadTexture(@skin)

#= require Entity

class Avatar extends Entity
  constructor: ->
    super
    @skin = @host.generator.pick(['nigel','bruce', 'julie', 'rachel'])
    @sprite = @host.spriteGroup.create(-100,-100, @skin)
    @sprite.animations.add("down", [0, 1, 2, 1], 10, true)

    if @sprite.animations.currentAnim.name != anim
      @sprite.animations.play(anim)

window.Avatar = Avatar
