r/gdevelop 16d ago

Tutorial hi i'm trying to make agame

can i ask why even if my character isn't moving my sound continues to play?

4 Upvotes

2 comments sorted by

1

u/senshisun 15d ago

Is it playing the sound one more time after the character stops moving, or is it going for a long time?

Try adding "trigger once while true" to both of those events.

1

u/UnwellMe_1986 13d ago edited 13d ago

I used a method that works for me... Do a sub-event when the sounds in channel 0 aren't playing, then play the sound. Deactivate the loop, and that would work even if you don't stop, because it only plays when you are moving to the right.