Seems more reliable than the original method but not perfect

This commit is contained in:
derek
2024-10-29 16:18:39 -05:00
parent 7bf8a0744b
commit 00aa8db85d
10 changed files with 27 additions and 21 deletions

View File

@@ -100,7 +100,7 @@ func shoot(delta):
instance_bullet.blast_power = blast_power
instance_bullet.player_position = player.global_position
get_tree().get_root().add_child(instance_bullet)
player.recoil.add_recoil(recoil_amount)
player.recoil.add_recoil(recoil_amount,10,10)
if fire_mode != 0:
cycle_count -= 1