Move steps

this.move(10);

Turn right

this.direction += 15;

Turn Left

this.direction -= 15;

Go to target

this.goto(this.random(-240, 240), this.random(-180, 180));
this.goto(this.mouse.x, this.mouse.y);
this.goto(this.sprites.sprite1.x, this.sprites.sprite1.y);

Go to x y

this.goto(200, 100);

Glide to target

yield* this.glide(1, this.random(-240, 240), this.random(-180, 180));
yield* this.glide(1, this.mouse.x, this.mouse.y);
yield* this.glide(1, this.sprites.sprite1.x, this.sprites.sprite1.y);

Glide to x y

yield* this.glide(1, 200, 100);

Point in direction

this.direction = 90;

Point towards

this.direction = this.radToScratch(
  Math.atan2(
    this.mouse.y - this.y,
    this.mouse.x - this.x
  )
);
this.direction = this.radToScratch(
  Math.atan2(
    this.sprites.sprite1.y - this.y,
    this.sprites.sprite1.x - this.x
  )
);

Change x by

this.x += 10;

Set x to

this.x = 0;

Change y by

this.y += 10;

Set y to

this.y = 0;

If on edge, bounce

No translation available.

Set rotation style

this.rotationStyle = Sprite.RotationStyle.LEFT_RIGHT;
this.rotationStyle = Sprite.RotationStyle.DONT_ROTATE;
this.rotationStyle = Sprite.RotationStyle.ALL_AROUND;

X position

this.x

Y position

this.y

Direction

this.direction