fix projectiles not killing player

This commit is contained in:
Haze Weathers 2023-05-10 14:34:03 -04:00
parent 7b0fb8ece5
commit e1b5c498f3
6 changed files with 9 additions and 10 deletions

View file

@ -30,7 +30,7 @@ func spawn_bullet():
var arrow = ArrowProjectile.instance()
arrow.global_position = global_position + (shootpos.position * scale)
arrow.direction = sign(shootpos.position.x) * scale.x
arrow.target_group = "player"
arrow.target_group = "player_hitbox"
arrow.speed = arrow_speed
Game.get_map().add_child(arrow)
timer.start(shoot_time)