fixed some things, broke others. gotta figure out more collision issues

This commit is contained in:
derek
2024-10-23 17:01:03 -05:00
parent d5300779a0
commit 8dd49b4d6b
4 changed files with 54 additions and 40 deletions

View File

@@ -153,6 +153,7 @@ func fire(delta):
instance_bullet.random_spread_amt = random_spread_amt
instance_bullet.bullet_force_mod = bullet_force_mod
instance_bullet.player_position = player.global_position
instance_bullet.player_velocity = player.velocity
instance_bullet.instance_bullethole = bullethole.instantiate()
get_tree().get_root().add_child(instance_bullet)
player.recoil.add_recoil(recoil_amount)