Seems more reliable than the original method but not perfect
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user