In AGS currently the sounds are modified by accessing the channel they are played on.
At the moment it is possible to change Volume and Speed.
Here's the related articles in the manual:
https://adventuregamestudio.github.io/ags-manual/AudioChannel.html
You can, but if you do that unconditionally, then it will start over every game frame.
What Snarky said is that your script logic should be fixed, for example to not replay same sound until the previous instance has stopped.
EDIT: or, alternatively, you may play looping sound as Sound.Play(eAudioPriorityNormal, eRepeat), and stop it when the player releases the key.
At the moment it is possible to change Volume and Speed.
Here's the related articles in the manual:
https://adventuregamestudio.github.io/ags-manual/AudioChannel.html
Quote from: Pajama Sam on Fri 31/12/2021 18:40:33
so you cant play a sound in repeatedly execute.
You can, but if you do that unconditionally, then it will start over every game frame.
What Snarky said is that your script logic should be fixed, for example to not replay same sound until the previous instance has stopped.
EDIT: or, alternatively, you may play looping sound as Sound.Play(eAudioPriorityNormal, eRepeat), and stop it when the player releases the key.