The x position of the center of the sprite
sprite.x
The y position of the center of the sprite
sprite.y
Draws an ellipse onto the display centered at x and y and inscribed in a rectangle with side lengths w(idth) and h(eight)
ellipse(x,y,w,h)
Velocity in the positive y direction of the sprite in pixels per frame
sprite.velocityY
Clockwise rotation in degrees of the sprite
sprite.rotation
Velocity in the positive x direction of the sprite in pixels per frame
sprite.velocityX
The visibility of the sprite, true or false
sprite.visible
The debug state of the sprite, true or false
sprite.debug
Draws a rectangle onto the display positioned at x and y with sides length w(idth) and h(eight)
rect(x,y,w,h)
Checks if the sprite is touching the target sprite or any sprite in the target group
sprite.isTouching(target)
Displays a group of sprites; if no parameter is specified, draws all sprites in the sketch
drawSprites(group)
Makes the sprite bounce off the target when they touch each other; the target keeps moving as before
sprite.bounceOff(target)
Makes the sprite and the target bounce when they touch each other; both the sprite and the target change how they are moving
sprite.bounce(target)
Clockwise rotation change in degrees per frame of the sprite
sprite.rotationSpeed
Makes the sprite stop when it runs into the target; if the target stops moving, it will push the sprite with it and the target keeps moving as before
sprite.collide(target)
Shrink or grow a sprite keeping the height to width ratio the same
sprite.scale
Makes the sprite push the target as long as they are touching each other; the sprite keeps moving normally
sprite.displace(target)
The velocity lost or gained by a sprite during a collision or bounce
sprite.bounciness
Creates a new sprite and assigns it to the variable specified
var sprite = createSprite(x,y,w,h)
Sets the collider for a sprite
setCollider(type, xOffset, yOffset, width/radius, height, rotationOffset)