ParallaxBackground
Create depth with parallax scrolling backgrounds. Multiple layers moving at different speeds for 2D game environments.
No shortcutIntermediate10 min readQuick Reference
ParallaxBackground
Godot EngineScene dock — Create New Node > Node2D category
Best Used For
- ▸Create 2D game elements and environments
- ▸Build parallax scrolling backgrounds
- ▸Design UI components and HUD elements
Key Settings
ParallaxBackground creates depth by scrolling background layers at different speeds. It works with ParallaxLayer children to create immersive 2D environments.
Where to Find It
Found under Node2D in Create New Node dialog. Add ParallaxLayer children for each layer of the background.
How to Use
- Add: Add a ParallaxBackground node to your scene.
- Layers: Add ParallaxLayer children for each background layer.
- Motion Scale: Set different Motion Scale values for each layer — lower values move slower for depth.
- Mirroring: Enable Mirroring to repeat textures seamlessly.
Pro Tips
- Use at least 3 layers: far (sky/mountains), mid (trees/buildings), near (foreground objects).
- Set the farthest layer to Motion Scale (0,0) for a static sky.