We use a root Node and attach a script.
We have the child of AudioStreamPlayer and with an audio file set.
This is the script to play the audio when up arrow is pressed.
extends Node func _process(delta): if Input.is_action_just_pressed('ui_up'): $AudioStreamPlayer.play()
No comments:
Post a Comment