Classes

developer »

gameProject »

pedestrianController »

playerPlatform »

punishment »

team »

Concepts

Libraries

Objects

setBounds

Description

Sets the camera scroll boundaries.

Arguments

1 number xMin

set the minimum boundary on the X axis.

2 number xMax

set the minimum boundary on the Y axis.

3 number yMin

set the maximum boundary on the X axis.

4 number yMax

set the maximum boundary on the Y axis.

Example

-- lock the camera within the specified boundaries

camera:setBounds(0, 0, 2000, 2000)