Skip to content

Sprites

Bradley edited this page Mar 8, 2023 · 4 revisions
-- Normal sprites
createSprite("name", "fileName")
changeSpriteProperty("name", "property", value)
getSpriteProperty("name", "property")

-- Animated Spritesheets
createSprite("name", "imgName")
applySparrow("name", "sheet.xml")
addAnim("name", "animName", "animPrefix")
animateSprite("name", "animName")

Properties include:

  • x
  • y
  • scaleX
  • scaleY
  • rotation
  • offsetX
  • offsetY
  • shearX
  • shearY
  • r
  • g
  • b
  • a
Clone this wiki locally