File: ParallaxLayer.xml

package info (click to toggle)
godot 3.0.6-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 104,964 kB
  • sloc: ansic: 732,795; cpp: 601,776; xml: 56,216; asm: 17,127; lisp: 12,017; python: 9,048; java: 8,253; cs: 5,803; sh: 557; perl: 275; makefile: 98; objc: 17
file content (29 lines) | stat: -rw-r--r-- 1,416 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?xml version="1.0" encoding="UTF-8" ?>
<class name="ParallaxLayer" inherits="Node2D" category="Core" version="3.0.6">
	<brief_description>
		A parallax scrolling layer to be used with [ParallaxBackground].
	</brief_description>
	<description>
		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>
	<demos>
	</demos>
	<methods>
	</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>
	</constants>
</class>