Bypass navigation menu
RGB Classic Games
Keeping the classics alive
Currently hosting 566 great games!
Return to Chapter 2

MoveRel(X, Y)

Moves a relative distance from the current X, Y position without plotting any points.

You can give this function both positive and negative values.

Parameters

X - Number of points to move in a horizontal direction
Y - Number of points to move in a vertical direction

Examples

BASIC

CALL MoveRel(15, 20)

PASCAL

MoveRel(15, 20);

BGI equivalent

void moverel(int dx, int dy);