2017-09-12 22:42:36 +02:00
<?xml version="1.0" encoding="UTF-8" ?>
2017-11-15 18:37:54 +01:00
<class name= "ParallaxLayer" inherits= "Node2D" category= "Core" version= "3.0-alpha" >
2017-09-12 22:42:36 +02:00
<brief_description >
A parallax scrolling layer to be used with [ParallaxBackground].
</brief_description>
<description >
2017-10-22 19:55:22 +02: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.
2017-09-12 22:42:36 +02:00
</description>
<tutorials >
</tutorials>
<demos >
</demos>
<methods >
<method name= "get_mirroring" qualifiers= "const" >
<return type= "Vector2" >
</return>
<description >
Return the mirroring of the ParallaxLayer.
</description>
</method>
<method name= "get_motion_offset" qualifiers= "const" >
<return type= "Vector2" >
</return>
<description >
</description>
</method>
<method name= "get_motion_scale" qualifiers= "const" >
<return type= "Vector2" >
</return>
<description >
Return the motion scale of the ParallaxLayer.
</description>
</method>
<method name= "set_mirroring" >
<return type= "void" >
</return>
<argument index= "0" name= "mirror" type= "Vector2" >
</argument>
<description >
Set the mirroring of the ParallaxLayer. If an axis is set to 0 then that axis will have no mirroring.
</description>
</method>
<method name= "set_motion_offset" >
<return type= "void" >
</return>
<argument index= "0" name= "offset" type= "Vector2" >
</argument>
<description >
</description>
</method>
<method name= "set_motion_scale" >
<return type= "void" >
</return>
<argument index= "0" name= "scale" type= "Vector2" >
</argument>
<description >
Set the motion scale of the ParallaxLayer. If an axis is set to 0 then it will not move at all, it will stick with the camera.
</description>
</method>
</methods>
<members >
2017-09-13 08:49:40 +02:00
<member name= "motion_mirroring" type= "Vector2" setter= "set_mirroring" getter= "get_mirroring" >
2017-10-22 19:55:22 +02:00
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].
2017-09-12 22:42:36 +02:00
</member>
2017-09-13 08:49:40 +02:00
<member name= "motion_offset" type= "Vector2" setter= "set_motion_offset" getter= "get_motion_offset" >
2017-10-24 19:22:37 +02:00
The ParallaxLayer's offset relative to the parent ParallaxBackground's [member ParallaxBackground.scroll_offset].
2017-09-12 22:42:36 +02:00
</member>
2017-09-13 08:49:40 +02:00
<member name= "motion_scale" type= "Vector2" setter= "set_motion_scale" getter= "get_motion_scale" >
2017-10-22 19:55:22 +02:00
Multiplies the ParallaxLayer's motion. If an axis is set to [code]0[/code] it will not scroll.
2017-09-12 22:42:36 +02:00
</member>
</members>
<constants >
</constants>
</class>