Quote: "how am i supposed to continually adjust the volume using play sound"
SetSoundInstanceVolume( iID, vol ) it does work when you have the id correct
ive used it in this thread
https://forum.thegamecreators.com/thread/223651
the following adjusts the crowds volume in relation to the distance from the car
crowdSnd=LoadSound("crowd.wav")
crowdInst=PlaySound(crowdSnd,100,1)
do
distance#=getDistance(vehicle,grandstand)
if distance#>2000 then distance#=2000
volume =100-(distance#/2000)*100.0
if GetSoundInstancePlaying(crowdInst)
SetSoundInstanceVolume (crowdInst,volume)
endif
sync()
loop
function getDistance(objectID as integer,objectID2 as integer)
distance as float
vec1 as integer
vec2 as integer
vec1=CreateVector3(GetObjectWorldX(objectID),GetObjectWorldY(objectID),GetObjectWorldZ(objectID))
vec2=CreateVector3(GetObjectWorldX(objectID2),GetObjectWorldY(objectID2),GetObjectWorldZ(objectID2))
distance=GetVector3Distance(vec1,vec2 )
DeleteVector3(vec1)
DeleteVector3(vec2)
endfunction distance
Quote: "you can have several instances of a sound hence why an instance of a sound is different from the actual sound id "
in my game I have two grandstands so there is two different instance ids but only one sound, hope that helps
help
https://www.appgamekit.com/documentation/Reference/Sound.htmfubar