Skip to content

Instantly share code, notes, and snippets.

@mattcolman
Created September 27, 2012 03:41
Show Gist options
  • Save mattcolman/3792041 to your computer and use it in GitHub Desktop.
Save mattcolman/3792041 to your computer and use it in GitHub Desktop.
Extracting a frame from a Spritesheet
img = @mySpritesheet.bitmapFromFrame 'frameLabelOrIndex'
img.centreRegistrationPoint()
@stage.addChild img
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment