Ability to make CanvasLayers have pseudo 3D depth.
This commit is contained in:
parent
4141703b1a
commit
19a6a6286a
11 changed files with 133 additions and 5 deletions
|
|
@ -207,7 +207,7 @@ void ParallaxBackground::_bind_methods() {
|
|||
ParallaxBackground::ParallaxBackground() {
|
||||
|
||||
scale = 1.0;
|
||||
set_layer(-1); //behind all by default
|
||||
set_layer(-100); //behind all by default
|
||||
|
||||
base_scale = Vector2(1, 1);
|
||||
ignore_camera_zoom = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue