Classes

developer »

gameProject »

pedestrianController »

playerPlatform »

punishment »

team »

Concepts

Libraries

Objects

setPosition

Description

Sets the position of the camera.

Arguments

1 number x

the X coordinate.

2 number y

the Y coordinate.

3 bool snap

whether the move should be instantaneous.

4 bool center

whether the camera should center on the specified coordinates.

Example

-- the camera will instantly snap to 500/1500 X/Y and will center the screen to this position

camera:setPosition(500, 1500, true, true)