Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
ParallaxLayer¶
Inherits: Node2D < CanvasItem < Node < Object
Una capa de scrolling de paralaje para ser usada con ParallaxBackground.
Descripción¶
Una Capa de paralaje debe ser el hijo de un nodo ParallaxBackground. Cada ParallaxLayer puede ser configurado para moverse a diferentes velocidades relativas al movimiento de la cámara o al valor ParallaxBackground.scroll_offset.
Los hijos de este nodo se verán afectados por su desplazamiento.
Nota: Cualquier cambio en la posición y escala de este nodo realizado después de que entre en la escena será ignorado.
Propiedades¶
|
||
|
||
|
Descripciones de Propiedades¶
Vector2 motion_mirroring
Default |
|
Setter |
set_mirroring(value) |
Getter |
get_mirroring() |
The ParallaxLayer's Texture mirroring. Useful for creating an infinite scrolling background. If an axis is set to 0
, the Texture will not be mirrored.
Vector2 motion_offset
Default |
|
Setter |
set_motion_offset(value) |
Getter |
get_motion_offset() |
El desplazamiento de la ParallaxLayer en relación con el ParallaxBackground del padre ParallaxBackground.scroll_offset.
Vector2 motion_scale
Default |
|
Setter |
set_motion_scale(value) |
Getter |
get_motion_scale() |
Multiplica el movimiento de la ParallaxLayer. Si un eje se establece en 0
, no se hará scroll.