Skip to content

Instantly share code, notes, and snippets.

@devildog
Created June 16, 2013 19:47
Show Gist options
  • Save devildog/5793166 to your computer and use it in GitHub Desktop.
Save devildog/5793166 to your computer and use it in GitHub Desktop.
MTE cancelMoveSprite method
local cancelSpriteMoveEx = function(sprite)
--spriteFrozen=true
if movingSprites[objects[sprite]] == objects[sprite] then
local s = movingSprites[objects[sprite]]
s.isMoving=false
s.deltaX = nil
s.deltaY = nil
movingSprites[objects[sprite]] = nil
end
end
M.cancelSpriteMove = cancelSpriteMoveEx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment