stop looping sound when i say


(sara) #1

how can i stop a looping sound when i want?
i tried sending messages but it doesnt stop.


(wiseman303) #2

if you have a sound set to loop in the sound buttons, and are using in the sound actuator play-end or loop-end, or anything else that ends in end. the sound will play forever because it doesn’t have an end. Use play-stop, or loop-stop, in your sound actuator.


(sara) #3

i know but i want to play it forever until i say not just once.


(saluk) #4

Use a prop. Set an int prop “playsound” to 0 at first. Instead of using al always sensor to trigger the sound, use a property sensor. Make it “playsound” equals 1. When you want the sound to play, use an actuator that sets “playsound” to 1. When you want the sound to stop, use an actuator that sets “playsound” to 0.


(sara) #5

thanks saluk.