fix player bullet

main
Just Dzhi 2023-10-01 19:29:27 +04:00
parent 160a860fef
commit 55b7e97f86
1 changed files with 2 additions and 2 deletions

View File

@ -68,8 +68,8 @@ func _shoot():
bullet = bullet_preload.instance()
bullet.target = target
get_parent().add_child(bullet)
bullet.global_position.x = self.global_position.x + 12
bullet.global_position.y = self.global_position.y - 4
bullet.global_position.x = self.global_position.x + 8
bullet.global_position.y = self.global_position.y + 8
func _draw():
if target != null and is_instance_valid(target):