Skip to main content

blockly > bubbles > Bubble > moveBy

bubbles.Bubble.moveBy() method

Moves the bubble by the given amounts in the x and y directions.

Signature:

moveBy(dx: number, dy: number, _reason?: string[]): void;

Parameters

Parameter

Type

Description

dx

number

The distance to move along the x axis.

dy

number

The distance to move along the y axis.

_reason

string[]

(Optional) A description of why this move is happening.

Returns:

void