What it does
screen.setViewOffset sets ViewOffset on a screen object. It takes x and y.
Signature
screen.setViewOffset(x, y)Arguments
xy
Example · generated
function start() { screen.setViewOffset(100, 120);}screen.setViewOffset is called with values of the shape its signature asks for. The code sits in start(), which the engine calls once, when the entity spawns.