Batter-Up
It's All Relative
Such a Pity
Somebunny Loves You
100

The x position of the center of the sprite

sprite.x

100

The y position of the center of the sprite

sprite.y

100

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)

100

Velocity in the positive y direction of the sprite in pixels per frame

sprite.velocityY

200

Clockwise rotation in degrees of the sprite

sprite.rotation

200

Velocity in the positive x direction of the sprite in pixels per frame

sprite.velocityX

200

The visibility of the sprite, true or false

sprite.visible

200

The debug state of the sprite, true or false

sprite.debug

300

Draws a rectangle onto the display positioned at x and y with sides length w(idth) and h(eight)

rect(x,y,w,h)

300

Checks if the sprite is touching the target sprite or any sprite in the target group

sprite.isTouching(target)

300

Displays a group of sprites; if no parameter is specified, draws all sprites in the sketch

drawSprites(group)

300

Makes the sprite bounce off the target when they touch each other; the target keeps moving as before

sprite.bounceOff(target)

400

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)

400

Clockwise rotation change in degrees per frame of the sprite

sprite.rotationSpeed

400

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)

400

Shrink or grow a sprite keeping the height to width ratio the same

sprite.scale

500

Makes the sprite push the target as long as they are touching each other; the sprite keeps moving normally

sprite.displace(target)

500

The velocity lost or gained by a sprite during a collision or bounce

sprite.bounciness

500

Creates a new sprite and assigns it to the variable specified

var sprite = createSprite(x,y,w,h)

500

Sets the collider for a sprite

setCollider(type, xOffset, yOffset, width/radius, height, rotationOffset)

M
e
n
u