menu sounds play from Audio.tscn, fixing certain selections not making any noise
This commit is contained in:
parent
bc75c3fd50
commit
9f89fccd64
3 changed files with 8 additions and 4 deletions
|
@ -15,12 +15,13 @@ func play_select_sound():
|
|||
var tune = CHROMATIC if notes_till_rumble > 0 else RUMBLE
|
||||
if notes_till_rumble == 0:
|
||||
current_note = 0
|
||||
select_sound.pitch_scale = pow(SEMITONE, tune[current_note])
|
||||
select_sound.play()
|
||||
Audio.ac_menu.pitch_scale = pow(SEMITONE, tune[current_note])
|
||||
Audio.play_sound(Audio.a_select,Audio.ac_menu)
|
||||
current_note = posmod(current_note + 1, tune.size())
|
||||
notes_till_rumble -= 1
|
||||
else:
|
||||
can_play = true
|
||||
|
||||
func play_confirm_sound():
|
||||
$"%ConfirmSound".play()
|
||||
Audio.ac_menu.pitch_scale = 1
|
||||
Audio.play_sound(Audio.a_confirm,Audio.ac_menu)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue