Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Pinosas

#1
Thank you guys so much !

Reading your replies I tried using Regions, the events  "Walk on region" and "Walk off region" suited my necessities:


function region1_WalksOnto()
{soundX.Play();}

function region1_WalksOff()
{soundX.Stop();}


Also the audio clip loops automatically !



#2
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 !!
SMF spam blocked by CleanTalk