Computer Science

Sprites:

REMEMBER: the lower a sprite is, the higher number the sprite.y property is. The farther right a sprite is, the higher number the sprite.x will show

Sprite Movement:

().x/y - Will teleport the sprite to the x/y shown.

().rotationSpeed - Makes a sprite start rotating in a direction.

().VelocityY - Makes a sprite go up or down at a constant speed.

().VelocityX - Makes a sprite go up or down at a constant speed.

REMEMBER: VelocityX and Y are both shortcuts for sprite.x/y = sprite.x/y -/+ ()

Sprite Appearance Properties:

().scale - Controls the size of a sprite.

().visible - Controls whether or not a sprite is visible.

().debug - Gives the sprite a green aura indicating the hitbox.

Collision Blocks:

().is touching () - Makes the second sprite do a command if it touches the sprite in the first space.

REMEMBER: ().isTouching () is usually replaced by the following:

().bounce () - Makes both the sprites in the spaces bounce off of eachother when in contact.

().bounceOff () - Makes the second sprite bounce off of the first sprite.

().displace () - Makes the first sprite be able to push the second.

().collide () - Makes the target able to push the first sprite when on contact with eachother.

().bounciness - Makes the sprite more bouncy when on contact with another sprite (only if there is a “().bounce/bounceOff” property).

().setCollider () - Gives the sprite a new hit box