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()