Skip to content

Commit

Permalink
Add note about default camera positioning
Browse files Browse the repository at this point in the history
  • Loading branch information
4ian authored Nov 30, 2024
1 parent cc5a988 commit 3a209c8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/gdevelop5/interface/scene-editor/layers-and-cameras.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,19 @@ In the layers editor, you can create a new layer by clicking the **Add new layer

![](/gdevelop5/interface/scene-editor/layers-and-cameras/pasted/20230310-194242.png)

### Layer centering according to the game window

Edit a layer properties to access multiple options regarding a layer. You can notably choose if:

* The camera of the layer **stays centered** when the game window is resized. This is usually useful for game content or menus
* The **top-left corner of the camera stays fixed** when the game window is resized. This is usually useful for UI or content that can expand.

![](./layers-and-cameras/layer-camera-positioning.png)

!!! note

This camera behavior is only useful when you're not using events to move the camera. If you center a camera on an object for example, this option won't have any impact.

### Moving objects to a different layer

Objects can be dynamically moved to a different layer while the game is running. There is a condition to check which layer an object is on, and an action that will change the layer of an object.
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3a209c8

Please sign in to comment.