Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Radgrid728 |
I wanted to make a sound by pressing a button so I attached a script to main scene and connected the button to it. And typed like this
func _on_TextureButton_pressed():
$AudioStreamPlayer2D.play()
Although I could hear when I pressed the button, the sounds are repeated again and again even if I pressed the button just once. Is there any way to stop it from repeating???