fix projectiles not killing player
This commit is contained in:
parent
7b0fb8ece5
commit
e1b5c498f3
6 changed files with 9 additions and 10 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue