Offset Position

The Offset position building block is for offsetting (translating) from one position to another position on the screen.

See the Drive mouse actions lesson for an example of how to use the Offset position block.

The Offset position block shows the following properties:

Offset position building block, expanded to show all properties

The Block Header (“Offset position”)

There are no green input or output connectors in the header, because this building block is never explicitly executed. Rather, it is used to perform a calculation on position values and deliver the result to other building blocks.

The title of the block (“Offset position”) can be changed by double-clicking on it and typing in a new title.

Position to offset

The position to offset in X, Y coordinates. The top-left corner of the screen is position 0, 0.

Click the expander button to work with the X and Y coordinates separately.

Offset value

The position to offset the original position with in X, Y coordinates. The top-left corner of the screen is position 0, 0.

Click the expander button to work with the X and Y coordinates separately.

Offset method

The method to use during offset (add or multiply).

For instance, adding 10, 20 to a position 500, 500 results in a position 510, 520.

Result position

The resulting position from the offset operation in X, Y coordinates. The top-left corner of the screen is position 0, 0.

Author: Claus Topholt, June 6, 2016.