Move steps
Turn right
Turn Left
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
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
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
Set x to
Change y by
Set y to
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
Y position
Direction