Deprecated: str_replace(): Passing null to parameter #1 ($search) of type array|string is deprecated in /var/www/vhosts/gamedevstudiogame.com/httpdocs/classes/client.php on line 124

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /var/www/vhosts/gamedevstudiogame.com/httpdocs/classes/client.php on line 124
Game dev studio

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)