bullet feels better, added spike traps
This commit is contained in:
@@ -154,7 +154,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.player_velocity = (player.velocity * player.transform.basis)
|
||||
instance_bullet.instance_bullethole = bullethole.instantiate()
|
||||
get_tree().get_root().add_child(instance_bullet)
|
||||
player.recoil.add_recoil(recoil_amount,10,recoil_speed_change)
|
||||
|
||||
Reference in New Issue
Block a user