Create sound effects using JFXR and add them to a Godot scene.
1. Create sound effects
- Using JFXR, FreeSound or another sound design program, create SFX for the player movement sounds, obstacle sounds and other sound effects for collisions or state changes in the game.
- Player: Jump, Land, Hit, Dies
- Obstacle hit
- Item collected
- Win game
- Portal and checkpoint
2. Add SFX to Godot
- Use your game project or download the Default Project Template
- Download the Assets folder if needed
- Create a folder for
Audio
and copy your sound files - Find or Add an
AudioStreamPlayer
node for each sound effect in the Player, Obstacle and Item scenes - Find the code to play each sound by searching for the sound names
- Uncomment the line of code by removing the
#
at the beginning
Before:
# remove comments to play sfx
# $JumpSound.play()
After:
# remove comments to play sfx
$JumpSound.play()
3. Documentation
- Post either the sound files or links to the resources on the Open Lab