Parallax for Tiled Sprite
Behaviors to animate Tiled Sprite objects in the background, following the camera with a parallax effect.
Authors and contributors to this experimental extension: 4ian, D8H.
Behaviors to animate Tiled Sprite objects in the background, following the camera with a parallax effect.
Tip
Learn how to install new extensions by following a step-by-step guide.
Horizontal Parallax for a Tiled Sprite
Move the image of a Tiled Sprite to follow the camera horizontally with a parallax effect. After adding this to an object, put the object on a layer that is not moving, behind the layer that is followed (for example, a layer called "Background").
Behavior properties
- Layer to be followed (leave empty for the base layer) (🔤 String).
- Parallax factor (speed for the parallax, usually between 0 and 1) (🔢 Number). Default value is
0.5.
See internal technical details
- Layer to be followed (leave empty for the base layer) is stored as
FollowedLayer(String). Default value is ``. - Parallax factor (speed for the parallax, usually between 0 and 1) is stored as
ParallaxFactor(Number). Default value is0.5.
No expressions for this behavior.
Vertical Parallax for a Tiled Sprite
Move the image of a Tiled Sprite to follow the camera vertically with a parallax effect. After adding this to an object, put the object on a layer that is not moving, behind the layer that is followed (for example, a layer called "Background").
Behavior properties
- Layer to be followed (leave empty for the base layer) (🔤 String).
- Offset on Y axis (🔢 Number, Distance). Default value is
0. - Parallax factor (speed for the parallax, usually between 0 and 1) (🔢 Number). Default value is
0.5.
See internal technical details
- Layer to be followed (leave empty for the base layer) is stored as
FollowedLayer(String). Default value is ``. - Offset on Y axis is stored as
OffsetY(Number). Unit is Pixel. Default value is0. - Parallax factor (speed for the parallax, usually between 0 and 1) is stored as
ParallaxFactor(Number). Default value is0.5.
No expressions for this behavior.
This page is an auto-generated reference page about the Parallax for Tiled Sprite extension for GDevelop, the open-source, AI-powered, cross-platform game engine designed for everyone. Learn more about all GDevelop extensions here.