Skip to Main Content
Godot Engine Game Development Projects
book

Godot Engine Game Development Projects

by Chris Bradfield
June 2018
Beginner to intermediate content levelBeginner to intermediate
298 pages
7h 38m
English
Packt Publishing
Content preview from Godot Engine Game Development Projects

Scrolling background

There are two background images in the res://assets/environment/layers folder: back.png and middle.png, for the far and near background, respectively. By placing these images behind the tilemap and scrolling them at different speeds relative to the camera, you can create an attractive illusion of depth in the background.

To start, add a ParallaxBackground node to the Level scene. This node works automatically along with the camera to create a scrolling effect. Drag this node to the top of the scene tree so that it will be drawn behind the rest of the nodes. Next, add a ParallaxLayer node as a child—ParallaxBackground can have any number of ParallaxLayer as children, allowing you to make many independently scrolling layers. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Game Development with Blender and Godot

Game Development with Blender and Godot

Kumsal Obuz
Unity Game Development Cookbook

Unity Game Development Cookbook

Paris Buttfield-Addison, Jon Manning, Tim Nugent

Publisher Resources

ISBN: 9781788831505Supplemental Content