2017-09-12 20:42:36 +00:00
<?xml version="1.0" encoding="UTF-8" ?>
2022-02-14 13:18:53 +00:00
<class name= "ParallaxLayer" inherits= "Node2D" version= "4.0" xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation= "../class.xsd" >
2017-09-12 20:42:36 +00:00
<brief_description >
A parallax scrolling layer to be used with [ParallaxBackground].
</brief_description>
<description >
2017-10-22 17:55:22 +00:00
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.
2019-06-21 23:04:47 +00:00
[b]Note:[/b] Any changes to this node's position and scale made after it enters the scene will be ignored.
2017-09-12 20:42:36 +00:00
</description>
<tutorials >
</tutorials>
<members >
2019-09-24 17:45:03 +00:00
<member name= "motion_mirroring" type= "Vector2" setter= "set_mirroring" getter= "get_mirroring" default= "Vector2(0, 0)" >
2020-02-12 08:59:06 +00:00
The ParallaxLayer's [Texture2D] mirroring. Useful for creating an infinite scrolling background. If an axis is set to [code]0[/code], the [Texture2D] will not be mirrored.
2017-09-12 20:42:36 +00:00
</member>
2019-09-24 17:45:03 +00:00
<member name= "motion_offset" type= "Vector2" setter= "set_motion_offset" getter= "get_motion_offset" default= "Vector2(0, 0)" >
2017-10-24 17:22:37 +00:00
The ParallaxLayer's offset relative to the parent ParallaxBackground's [member ParallaxBackground.scroll_offset].
2017-09-12 20:42:36 +00:00
</member>
2019-09-24 17:45:03 +00:00
<member name= "motion_scale" type= "Vector2" setter= "set_motion_scale" getter= "get_motion_scale" default= "Vector2(1, 1)" >
2019-06-21 23:04:47 +00:00
Multiplies the ParallaxLayer's motion. If an axis is set to [code]0[/code], it will not scroll.
2017-09-12 20:42:36 +00:00
</member>
</members>
</class>