// load a sound file from an uncompressed wav file
sound = LoadSound("my_sound.wav")
do
// each time the screen is touched, start playing another instance of the sound
if GetPointerPressed()
PlaySound(sound)
endif
// display how many instances of the sound are currently playing
Print("Instances of Sound Playing: " + Str(GetSoundsPlaying(sound)))
// update the screen
Sync()
loop
Help make AGK better by submitting an example for this command! (All examples are subject to approval)
// load a sound file from an uncompressed wav file sound = LoadSound("my_sound.wav") do // each time the screen is touched, start playing another instance of the sound if GetPointerPressed() PlaySound(sound) endif // display how many instances of the sound are currently playing Print("Instances of Sound Playing: " + Str(GetSoundsPlaying(sound))) // update the screen Sync() loop