Hi there !
I'm a fresh beginner at AGS and i don't know how to translate my idea into the scripting.
What i want is to play an audio clip in a loop whenever my character is inside a Hotspot, even if the character is walking around. I've found out that the "Stand on Hotspot" event should occur repeatedly while the player character is standing on the hotspot, so I used it and wrote the audio script I read in the tutorial:
function hHotspot1_WalkOn()
{audio1.Play();}
However, when i run the game the audio only pops out when the character leaves the Hotspot, and not while it's inside. Besides that problem, I guess i should write another script to make the audio go in a loop (?)
I have searched in the forum and tutorial for hours and couldn't find anything on the subject so any kind of help would be very much appreciated !!
I'm a fresh beginner at AGS and i don't know how to translate my idea into the scripting.
What i want is to play an audio clip in a loop whenever my character is inside a Hotspot, even if the character is walking around. I've found out that the "Stand on Hotspot" event should occur repeatedly while the player character is standing on the hotspot, so I used it and wrote the audio script I read in the tutorial:
function hHotspot1_WalkOn()
{audio1.Play();}
However, when i run the game the audio only pops out when the character leaves the Hotspot, and not while it's inside. Besides that problem, I guess i should write another script to make the audio go in a loop (?)
I have searched in the forum and tutorial for hours and couldn't find anything on the subject so any kind of help would be very much appreciated !!