loc a b c d

Description

Loc positions the draw cursor relative to the window width, height, and then offsets it.

Loc is more complicated and confusing / unreadable so its not recommended for osl beginners.

Parameters

Loc takes 4 parameters.

Usage

loc 2 2 20 -20

// is identical to

goto window.width / -2 window.height / 2
change 20 -20
loc a b c d

// is

goto window.width / -a window.height / b
change c d

Last updated

Was this helpful?