Download the AudioFX files here:
Drag and Drop them into the Godot FileSystem
Add a New AudioStreamPlayer as a child of Player
Rename it to ExplosionAudio
Drag the Death Explosion file to the Stream Property
of the ExplosionAudio Node
This AudioStreamPlayer is now set to play this file.
Test it by setting the Playing Property to On
Add a New AudioStreamPlayer as a child of Player
Rename it to SuccessAudio
Drag the Success file to the Stream Property
This AudioStreamPlayer is now set to play this file.
Test it by setting the Playing Property to On
Add onready variables for the two audio streams
Make the streams play when:
We want the rocket to make a sound when thrusting
Double-click the Main Engine Thrust SFX
Enable Looping by ticking the box
Click on Reimport to update the file
Add an AudioStreamPlayer3D as a child of Player Node
Drag the Main Engine Thrust SFX into the Stream property
In the Player script add a new onready variable for the Stream
The thrust SFX should only play when the boost key is pressed AND the stream
So we must create and if-else statement for this