Remade spawn coordinates system

This commit is contained in:
Marco 2025-01-27 17:13:26 +01:00
commit d633618633
5 changed files with 85 additions and 12 deletions

View file

@ -159,7 +159,7 @@ position = Vector2(0, 1)
shape = SubResource("RectangleShape2D_ai4rh")
[node name="Muzzle" type="Marker2D" parent="."]
position = Vector2(5, 0)
position = Vector2(-1, 0)
[node name="Node2D" type="Node2D" parent="."]
@ -201,8 +201,9 @@ collision_mask = 128
shape = SubResource("CircleShape2D_e6woi")
debug_color = Color(1, 0.00817797, 0.0443347, 0.42)
[node name="Weapon" parent="." instance=ExtResource("9_wblq0")]
[node name="Weapon" parent="." node_paths=PackedStringArray("Muzzle") instance=ExtResource("9_wblq0")]
BulletScene = ExtResource("2_ov36d")
Muzzle = NodePath("../Muzzle")
RateOfFire = 0.1
BulletCapacity = 100
ReloadTime = 0.4