Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
gdevelop5:interface:scene-editor:layers-and-cameras [2019/08/14 03:28]
4ian
gdevelop5:interface:scene-editor:layers-and-cameras [2019/08/21 06:18] (current)
4ian
Line 23: Line 23:
 * To prevent the camera from going out of bounds, you can center the camera on an object within limits. This will limit the center of the camera within the quadrilateral inscribed using the two diagonally opposite points entered. * To prevent the camera from going out of bounds, you can center the camera on an object within limits. This will limit the center of the camera within the quadrilateral inscribed using the two diagonally opposite points entered.
  
-## Dimensions and angle of the camera+## Zooming with camera
  
-* Height of the camera is the length of the vertical side of the game visible and width is the length of the horizontal side.  By default, these sizes are the same as the game window. If you change them, the rendering of the layer will be stretched or minimised. Most of the time, if you change ​the size of the game windowyou'll want to change or restart the scene so that the camera update their size to the new window size.+Camera can have a zoom applied to them. If you zoom into a scene, the contents appear larger and if you zoom out, they appear smaller than the default setting. The default zoom value is 1. To zoom inset a value higher than 1 and to zoom out, set a value less than 1.
  
-* The camera angle is the angle by which the camera is rotated on the X-Y plane. The angle increases as we go in the clockwise direction.+## Changing visibility of a layer
  
-{{ :​wiki:​pres_coord2.png?nolink |}}+Visibility of a layer can be toggled, either in the Layers Editor or using events. Hiding a layer _does not_ delete the objects on the layer. If a layer is hidden, all the objects on the layer exist and can interact with the objects on other layers but they are not visible
  
-## Zooming with camera+<note tip>By default, all layers are visible. This can be changed in the Layers Editor.</​note>​
  
-Camera can have a zoom applied to them. If you zoom into a scene, ​the contents appear larger and if you zoom out, they appear smaller than the default setting. The default zoom value is 1. To zoom in, set a value higher than 1 and to zoom out, set value less than 1.+## Changing ​the time scale of layer
  
-## Visibility ​of a layer+The "time scale" ​of a layer allows you to change the speed of all the animations in a layer, as well as all object movements. To slow down the time on a layer, set a time scale less than 1. To speed up the time on a layer, set a time scale greater than 1. The default time scale is 1 for all layers.
  
-Visibility of a layer can be toggled. Hiding a layer _does not_ delete the objects ​on the layer. If a layer is hidden, all the objects on the layer exist and can interact with the objects on other layers ​but they are not visible. ​+## Effects (shaders) ​on layers
  
-<note tip>By default, all layers are visible. This can be changed in the Layers Editor.</note>+You can add [[gdevelop5:​interface:​scene-editor:​layer-effects|effects]] that change how a layer is renderedThis allow to quickly create things like a night effect, a flashback/retro atmosphere with sepia colors, etc... [[gdevelop5:​interface:​scene-editor:​layer-effects|Read more about effects here]].
  
-## Changing object layers during the game+## Other manipulations on layers and cameras 
 + 
 +### Changing object layers during the game
  
 You can move the object to a different layer or check the layer of the object using actions and conditions that are available for all objects. You can move the object to a different layer or check the layer of the object using actions and conditions that are available for all objects.
  
-## Changing the time scale of a layer+### Dimensions and angle of the camera
  
-The "time scale" ​of a layer allows you to change ​the speed of all the animations in a layer, as well as all object movementsTo slow down the time on a layer, set a time scale less than 1To speed up the time on a layerset a time scale greater than 1. The default time scale is 1 for all layers.+* Height ​of the camera is the length ​of the vertical side of the game visible and width is the length of the horizontal side.  By defaultthese sizes are the same as the game windowIf you change them, the rendering of the layer will be stretched or minimisedMost of the time, if you change the size of the game window, you'll want to change or restart the scene so that the camera update their size to the new window size.
  
-## Effects (shaders) ​on layers+* The camera angle is the angle by which the camera is rotated ​on the X-Y plane. The angle increases as we go in the clockwise direction. 
 + 
 +{{ :​wiki:​pres_coord2.png?​nolink |}}
  
-In a future version of GDevelop, layers will be able to get effects applied on them. 
-Vote for this feature on the roadmap: https://​trello.com/​c/​3tjeWGuc/​94-add-support-for-choosing-the-effects-to-apply-on-layers-in-gdevelop-5