![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | SoMir |
I’ve been making a game for a week in Godot now, and I’m pretty happy with it, but I want to add sound effects to it. I did this:
onready var walk = $PlayerWalkSound
if velocity.x != 0 and is_on_floor() and !walk.playing:
walk.play()
elif walk.playing:
walk.stop()
But it doesn’t work. It won’t play the whole sound, it just repeats the first millisecond of it very quickly. The other sounds I use were easier to implement, but this is a little harder for me. Any ideas?
Nvm, don’t bother answering, I solved it.
SoMir | 2020-07-15 15:08
Nvm, don’t bother answering, I solved it.
Care to share the solution here? Might help someone with the same or a similar problem in the future.
njamster | 2020-07-16 17:50
There, Done!
SoMir | 2020-07-16 18:29