Skip to content

Instantly share code, notes, and snippets.

@danhp
Created September 21, 2013 14:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danhp/6651281 to your computer and use it in GitHub Desktop.
Save danhp/6651281 to your computer and use it in GitHub Desktop.
Set Correct release sprite
function Climbable:release( player )
local state = player.currently_held and 'wielding' or 'default'
player:setSpriteStates(state)
player.isClimbing = false
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment