Game Boundary
We need to constrain the play area
We need to constrain the play area
We will create an invisible boundary
We will create an invisible boundary
Add a new TiledBackground object
Add a new TiledBackground object
Don't give it any sprite or colour
Don't give it any sprite or colour
Leave it invisible
Leave it invisible
Create the left boundary
Create the left boundary
Size: 540 x 1920
Size: 540 x 1920
Position: -540, 0
Position: -540, 0
Name the TiledBackground: Limits
Name the TiledBackground: Limits
Duplicate the left boundary and position it to the right:
Duplicate the left boundary and position it to the right:
Position: 1080, 0
Position: 1080, 0
Duplicate the left boundary and resize it
Duplicate the left boundary and resize it
and reposition it at the bottom:
and reposition it at the bottom:
Size: 1080 x 380
Size: 1080 x 380
Position: 0, 1534
Position: 0, 1534
The final boundary outline looks like this:
The final boundary outline looks like this:
Finally, click on Limits in the Project Window
Finally, click on Limits in the Project Window
Add the Physics Behaviour
Add the Physics Behaviour
Makit it Immovable
Makit it Immovable
So that we don't accidentally select or move the Limit
So that we don't accidentally select or move the Limit
Set the locked property to true
Set the locked property to true