Posted July 22, 2024 by SamzGames
Hey everyone,
The V.2 update is here!
*This semi-final update includes:
*Bug fixes:
*Known issues:
*For the technical nerds:
The coin bug occurs due to how the coins are coded. When the player approaches a coin, an Area2D emits a signal indicating the player's proximity, adds one to the player's coin count, and then destroys the coin. Initially, the coin's audio was attached to the coin itself, causing it to be destroyed along with the coin.
To address this, I hid the coin sprite when collected, played the coin sound, and destroyed the coin after the sound finished:
pickups.add_point() coin_pickup_sound.play() hide() await coin_pickup_sound.finished queue_free()
This created a window where the player could collect the coin multiple times while the sound played. I plan to fix this by creating an external node to play the sound when the player enters the area, but I didn't get around to it for this update.
Next up comes a small polish update to address remaining issues and tune the movement system a little bit.
Thanks to everyone who played this small project and stay tuned!
If you want to keep up with everything I do, you can follow my twitter page: