Fixed typos. Fixed player timers mode
This commit is contained in:
@@ -102,14 +102,17 @@ drag_bottom_margin = 0.1
|
||||
position = Vector2(0, -24)
|
||||
|
||||
[node name="SwitchBufferTimer" type="Timer" parent="." unique_id=115300327]
|
||||
process_callback = 0
|
||||
wait_time = 0.5
|
||||
one_shot = true
|
||||
|
||||
[node name="JumpBufferTimer" type="Timer" parent="." unique_id=740877224]
|
||||
process_callback = 0
|
||||
wait_time = 0.1
|
||||
one_shot = true
|
||||
|
||||
[node name="CoyoteTimeTimer" type="Timer" parent="." unique_id=117837002]
|
||||
process_callback = 0
|
||||
wait_time = 0.1
|
||||
one_shot = true
|
||||
|
||||
|
||||
@@ -9,10 +9,10 @@ const MUSIC_BUS = "Music"
|
||||
|
||||
|
||||
@export_group("Pitch settings", "pitch")
|
||||
@export_range(0.9, 1.1, 0.01) var putch_ui_min := 1.0
|
||||
@export_range(0.9, 1.1, 0.01) var putch_ui_max := 1.0
|
||||
@export_range(0.9, 1.1, 0.01) var putch_sfx_min := 1.0
|
||||
@export_range(0.9, 1.1, 0.01) var putch_sfx_max := 1.0
|
||||
@export_range(0.9, 1.1, 0.01) var pitch_ui_min := 1.0
|
||||
@export_range(0.9, 1.1, 0.01) var pitch_ui_max := 1.0
|
||||
@export_range(0.9, 1.1, 0.01) var pitch_sfx_min := 1.0
|
||||
@export_range(0.9, 1.1, 0.01) var pitch_sfx_max := 1.0
|
||||
|
||||
@export_group("Number of players", "player_count")
|
||||
@export_range(1, 10) var player_count_ui := 1
|
||||
@@ -60,7 +60,7 @@ func _ready() -> void:
|
||||
func play_ui_stream(stream: AudioStream) -> AudioStreamPlayer:
|
||||
var player := _get_free_player(_ui_players)
|
||||
player.stream = stream
|
||||
player.pitch_scale = randf_range(putch_ui_min, putch_ui_max)
|
||||
player.pitch_scale = randf_range(pitch_ui_min, pitch_ui_max)
|
||||
player.play()
|
||||
return player
|
||||
|
||||
@@ -68,7 +68,7 @@ func play_ui_stream(stream: AudioStream) -> AudioStreamPlayer:
|
||||
func play_sfx_stream(stream: AudioStream, position: Vector2) -> AudioStreamPlayer2D:
|
||||
var player := _get_free_2d_player(_sfx_players)
|
||||
player.stream = stream
|
||||
player.pitch_scale = randf_range(putch_ui_min, putch_ui_max)
|
||||
player.pitch_scale = randf_range(pitch_ui_min, pitch_ui_max)
|
||||
player.position = position
|
||||
player.play()
|
||||
return player
|
||||
|
||||
Reference in New Issue
Block a user