Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Arjunaz78 on Sat 22/10/2011 12:06:23

Title: Using Sound FX On Walk [SOLVED]
Post by: Arjunaz78 on Sat 22/10/2011 12:06:23
I just put a sound FX to character Walk animation..

but I just wondering how to disable or stop the current sound FX trigger that i set when character stop walk and otherwise enable back when character start walk back.

THX.
Title: Re: Using Sound FX On Walk
Post by: Khris on Sat 22/10/2011 12:30:09
How did you "put the sound to the animation"?

Do you mean the sound is now looping continuously, even if the character isn't walking?
Did you not set frame sounds in the view editor?
Title: Re: Using Sound FX On Walk
Post by: Arjunaz78 on Mon 24/10/2011 12:32:49
Oh...sorry because i make the confusing situation here,besides i'm weak on English... :(

what i mean is i want to put the sound and start to play when the character start walk everywhere (not walk animation,just normal walkto code) then i want the sound stop when the character stop walking or reach the non-walkable area & start the sound back when walk to walkable area..

otherwise..the sound trigger when i set the character walk with eBlock function instead of eNoBlock function..

currently i set the code like this on Room script..for eBlock function..


function hDoor_Look()
{
aSample.Play();

cMalek.Walk(250, 120, eblock ,eAnywhere);

aSample.Stop();
}


Refer to script above,the sound will be trigger automatically when i click the Door hotspot,but how can i set up if the code in eNoBlock function?

In other word,how can i put the sound if the character on normal walkable area insteads of object,hotspot etc.?
I mean trigger the sound to play & stop when use normal 'walkto' mode?
Title: Re: Using Sound FX On Walk
Post by: NickyNyce on Mon 24/10/2011 12:47:10
It's a bit hard to understand exactly what your asking. But as Khris has mentioned, you can go to your walk view and place whatever sound you want to any frame in the view.

Go to your views (walking view)
click on one of the frames, you will see a sound menu in the bottom right hand corner of the properties window. Choose a sound from the menu. This is great for footstep sounds.

If this is not what your asking for I apologize, it's a bit tough to make out your english

Now the sound will only play when the character is walking. You no longer will have to code this everytime your character wants to go somewhere.
Title: Re: Using Sound FX On Walk
Post by: Arjunaz78 on Mon 24/10/2011 13:47:26
i feel sorry for my English...i'm still learning it..but actually it's work like a charm now..thank Khris & you too Nicky...

THX.