> For the complete documentation index, see [llms.txt](https://julhiecio.gitbook.io/ju-tps-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://julhiecio.gitbook.io/ju-tps-documentation/game-development/camera-state-trigger.md).

# Camera State Trigger

You can make your game much more dynamic using Camera State Triggers, imagine going through a tunnel and the camera approaching the player.

1- Create a Camera State Trigger

<div align="left"><figure><img src="https://2945806600-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCQMDx0LmgnRXXTklLhoh%2Fuploads%2FkuplvLBIlS8QbFvCgs6f%2Fimage.png?alt=media&amp;token=f763cd77-d30b-4475-828b-f70c930883fb" alt=""><figcaption></figcaption></figure></div>

2- Change the size of the Camera State Trigger and configure the camera state

<div align="left"><figure><img src="https://2945806600-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCQMDx0LmgnRXXTklLhoh%2Fuploads%2FtuFZDKVweCVDHGlF8Eev%2Fimage.png?alt=media&amp;token=8ecb03ff-4375-4d74-8d34-0f16fc21020f" alt=""><figcaption></figcaption></figure></div>

3- Press play and test

<figure><img src="https://2945806600-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCQMDx0LmgnRXXTklLhoh%2Fuploads%2FRUQ2HqGH43h13piAtxzU%2FCamera%20State%20Trigger%20Gif.gif?alt=media&amp;token=99bf060d-c1b6-43ca-b0d0-c62806bf012e" alt=""><figcaption></figcaption></figure>
