Sprite API

objectDescription
sprite.xPosition x
sprite.yPosition y
sprite.removeRemove sprite from scene
sprite.widthSprite width
sprite.heightSprite height
sprite.widthSprite width
sprite.anchor.xSprite anchor x
sprite.anchor.ySprite anchor y
sprite.rotate.angleAngle rotation
sprite.anchor.relatifyes or no (true or false)
sprite.anchor.xSprite anchor x
sprite.clip.xx clip zone to the specified sprite
sprite.clip.yy clip zone to the specified sprite
sprite.clip.widthwidth clip zone to the specified sprite
sprite.clip.heightheight clip zone to the specified sprite
sprite.flip.hHorizontal flip (1 or -1)
sprite.flip.vVertical flip (1 or -1)
sprite.scale.widthNew sprite width (in pixels)
sprite.scale.heightNew sprite height (in pixels)
sprite.opacityNew sprite opacity
sprite.velocity.xNew sprite velocity x
sprite.velocity.yNew sprite velocity y