소스 검색

: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