Sprites

Create and move game objects. Handle overlaps between objects.

Create sprites

sprites.create(img`.`)
sprites.createProjectile(img`.`, 0, 0, 0)

Sprite actions

sprites.create(null).say("")
sprites.create(null).overlapsWith(null)
sprites.create(null).destroy()
sprites.create(null).setFlag(0, false)
sprites.create(null).setImage(null)
sprites.create(null).setPosition(0, 0)
sprites.create(null).setKind(0)
sprites.create(null).kind()

Sprite effects

sprites.create(null).startEffect(effects.spray, 500)
effects.clearParticles(null)

Sprite events

sprites.onCreated(0, function (sprite) {})
sprites.onDestroyed(0, function (sprite) {})
sprites.onOverlap(0, 0, function (sprite, otherSprite) {})

Sprite properties

Position

Physics

Image and Attributes

See also

create, create projectile, say, overlaps with, destroy, set flag, set image, set position, set kind, kind, start effect, clear particles, on created, on destroyed, on overlap