Godot 2D Pixel Platformer Devlog 2
With the game loop ready, I felt the next step is adding audio feedback because every game has it.
I created an audio manager and added it to the autoload section. In short, autoload is Godot's version of Singleton.
The script below shows how the audio manager is called when the player collects a cherry, a pickable item in the game.
From there I searched the vast library of the internet for sound effects. After finding good enough sound effects, it was time to make sure my audio manager worked and nothing went wrong.
If I had to nitpick, there is always the feeling of watching the sound effects play alongside the animations and you notice they aren't in sync because they are of different lengths.
Subscribe to my newsletter
Read articles from Christer Bjoerk directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by