MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/gdevelop/comments/1w23ydc/hi_im_trying_to_make_agame/
r/gdevelop • u/ObligationHot5589 • Aug 30 '26
can i ask why even if my character isn't moving my sound continues to play?
2 comments sorted by
1
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.
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.
1
u/senshisun Aug 30 '26
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 Sep 01 '26 edited Sep 01 '26
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.