i forgor; i think it's audio mixing?
This commit is contained in:
parent
e57db65b33
commit
c54ccb4d4f
12 changed files with 51 additions and 15 deletions
|
|
@ -5,8 +5,8 @@ func fire(aim_angle: float) -> void:
|
|||
var dir := Vector3.RIGHT.rotated(Vector3.UP, aim_angle)
|
||||
var player_projectile: PlayerProjectile = preload("res://player/projectile/player_projectile.tscn").instantiate()
|
||||
player_projectile.init(dir)
|
||||
player_projectile.global_position = global_position + Vector3.UP * 0.5
|
||||
get_tree().current_scene.add_child(player_projectile)
|
||||
player_projectile.global_position = global_position + Vector3.UP * 0.5
|
||||
fire_clock = 60. / fire_rate
|
||||
|
||||
%SharpshooterFire.play()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue