Fixed projectile parent

This commit is contained in:
2025-11-05 00:03:34 +03:00
parent ce6b93a7bf
commit 648c00fbba
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -40,7 +40,8 @@ func shoot() -> void:
projectile.direction = Vector2.LEFT
projectile.collide_player = true
add_child(projectile)
projectile.global_position = global_position
get_tree().current_scene.add_child(projectile)
for reloader in _reloaders:
reloader.shoot()
@@ -11,7 +11,7 @@ collision_mask = 0
motion_mode = 1
script = ExtResource("1_hycpq")
damage = 45
speed = 300
speed = 900
metadata/_custom_type_script = "uid://ctmjb3nkxrepu"
[node name="Sprite2D" type="Sprite2D" parent="."]