浏览代码

:wrench: Make the clouds impacted by zoom

DricomDragon 1 年之前
父节点
当前提交
b7d38ef1b9
共有 1 个文件被更改,包括 12 次插入9 次删除
  1. 12 9
      godot/run/levels/level_1.tscn

+ 12 - 9
godot/run/levels/level_1.tscn

@@ -24,54 +24,57 @@ centered = false
 region_enabled = true
 region_rect = Rect2(0, 0, 6400, 6400)
 
-[node name="Clouds" type="ParallaxLayer" parent="ParallaxBackground"]
+[node name="ParallaxSky" type="ParallaxBackground" parent="."]
+layer = -99
+
+[node name="Clouds" type="ParallaxLayer" parent="ParallaxSky"]
 position = Vector2(3, -3)
 motion_scale = Vector2(0.8, 0.8)
 motion_mirroring = Vector2(10000, 5000)
 
-[node name="CloudA1" type="Sprite2D" parent="ParallaxBackground/Clouds"]
+[node name="CloudA1" type="Sprite2D" parent="ParallaxSky/Clouds"]
 position = Vector2(1424, 3022)
 texture = ExtResource("2_kj5ji")
 region_enabled = true
 region_rect = Rect2(2048, 1256, 2048, 2048)
 
-[node name="CloudB1" type="Sprite2D" parent="ParallaxBackground/Clouds"]
+[node name="CloudB1" type="Sprite2D" parent="ParallaxSky/Clouds"]
 position = Vector2(4990, 2460)
 texture = ExtResource("2_kj5ji")
 region_enabled = true
 region_rect = Rect2(0, 1256, 2048, 2048)
 
-[node name="CloudC1" type="Sprite2D" parent="ParallaxBackground/Clouds"]
+[node name="CloudC1" type="Sprite2D" parent="ParallaxSky/Clouds"]
 position = Vector2(4127, 744)
 texture = ExtResource("2_kj5ji")
 region_enabled = true
 region_rect = Rect2(0, 0, 2048, 1200)
 
-[node name="CloudD1" type="Sprite2D" parent="ParallaxBackground/Clouds"]
+[node name="CloudD1" type="Sprite2D" parent="ParallaxSky/Clouds"]
 position = Vector2(3453, 3902)
 texture = ExtResource("2_kj5ji")
 region_enabled = true
 region_rect = Rect2(2048, 0, 2048, 1200)
 
-[node name="CloudA2" type="Sprite2D" parent="ParallaxBackground/Clouds"]
+[node name="CloudA2" type="Sprite2D" parent="ParallaxSky/Clouds"]
 position = Vector2(7555, 1048)
 texture = ExtResource("2_kj5ji")
 region_enabled = true
 region_rect = Rect2(2048, 1256, 2048, 2048)
 
-[node name="CloudB2" type="Sprite2D" parent="ParallaxBackground/Clouds"]
+[node name="CloudB2" type="Sprite2D" parent="ParallaxSky/Clouds"]
 position = Vector2(8479, 3186)
 texture = ExtResource("2_kj5ji")
 region_enabled = true
 region_rect = Rect2(0, 1256, 2048, 2048)
 
-[node name="CloudC2" type="Sprite2D" parent="ParallaxBackground/Clouds"]
+[node name="CloudC2" type="Sprite2D" parent="ParallaxSky/Clouds"]
 position = Vector2(6394, 3984)
 texture = ExtResource("2_kj5ji")
 region_enabled = true
 region_rect = Rect2(0, 0, 2048, 1200)
 
-[node name="CloudD2" type="Sprite2D" parent="ParallaxBackground/Clouds"]
+[node name="CloudD2" type="Sprite2D" parent="ParallaxSky/Clouds"]
 position = Vector2(972, 566)
 texture = ExtResource("2_kj5ji")
 region_enabled = true