diff options
| author | Jerome67000 | 2017-10-22 19:55:22 +0200 |
|---|---|---|
| committer | Jerome67000 | 2017-10-22 23:10:39 +0200 |
| commit | a5c3696b3b18042f9cada5f76939db84cdb98886 (patch) | |
| tree | 19bf213bc249d28176211980c487fb6df03e958b /doc/classes/ParallaxLayer.xml | |
| parent | 8bc96cc14690d78435d3c2fb960d416df41af790 (diff) | |
| download | godot-a5c3696b3b18042f9cada5f76939db84cdb98886.tar.gz godot-a5c3696b3b18042f9cada5f76939db84cdb98886.tar.zst godot-a5c3696b3b18042f9cada5f76939db84cdb98886.zip | |
[DOCS] ParallaxBackground and ParallaxLayer
Diffstat (limited to 'doc/classes/ParallaxLayer.xml')
| -rw-r--r-- | doc/classes/ParallaxLayer.xml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/doc/classes/ParallaxLayer.xml b/doc/classes/ParallaxLayer.xml index 6cf5549c8..8de7e0557 100644 --- a/doc/classes/ParallaxLayer.xml +++ b/doc/classes/ParallaxLayer.xml @@ -4,7 +4,8 @@ A parallax scrolling layer to be used with [ParallaxBackground]. </brief_description> <description> - A ParallaxLayer must be the child of a [ParallaxBackground] node. All child nodes will be affected by the parallax scrolling of this layer. + A ParallaxLayer must be the child of a [ParallaxBackground] node. Each ParallaxLayer can be set to move at different speeds relative to the camera movement or the [member ParallaxBackground.scroll_offset] value. + This node's children will be affected by its scroll offset. </description> <tutorials> </tutorials> @@ -60,10 +61,13 @@ </methods> <members> <member name="motion_mirroring" type="Vector2" setter="set_mirroring" getter="get_mirroring"> + The ParallaxLayer's [Texture] mirroring. Useful for creating an infinite scrolling background. If an axis is set to [code]0[/code] the [Texture] will not be mirrored. Default value: [code](0, 0)[/code]. </member> <member name="motion_offset" type="Vector2" setter="set_motion_offset" getter="get_motion_offset"> + The ParallaxLayer's offset relative to the parent ParallaxBackground's [member ParallaxBackground.scroll_offset]. </member> <member name="motion_scale" type="Vector2" setter="set_motion_scale" getter="get_motion_scale"> + Multiplies the ParallaxLayer's motion. If an axis is set to [code]0[/code] it will not scroll. </member> </members> <constants> |
