0 votes

I'm creating an effect, when a bullet hits a surface. The bullet is made entirely with VisualServer and PhysicsServer. I wanted to do the same with hit effect, but I cannot find a way to play hit sound using AudioServer.

in Engine by (104 points)

1 Answer

0 votes

Hi!

As I currently understand, audio playback is not possible with only the AudioServer. Similar to the way an AnimationTree requires an AnimationPlayer node to be present to actually play animations with the AnimationTree, an AudioServer requires a node to handle the actual audio playback— such as an AudioStreamPlayer. I am not exactly sure what tangible effect you are trying to achieve, but rest assured, an AudioServer can certainly work hand in hand with an AudioStreamPlayer.

I hope this response serves you well.
Maxwell

by (153 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.