Using Sound FX On Walk [SOLVED]

Started by Arjunaz78, Sat 22/10/2011 12:06:23

Previous topic - Next topic

Arjunaz78

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.
..In the making of Silent Hill: The Hospital..

https://www.facebook.com/ArjunazGamesStudio

Khris

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?

Arjunaz78

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..

Code: ags

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?
..In the making of Silent Hill: The Hospital..

https://www.facebook.com/ArjunazGamesStudio

NickyNyce

#3
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.

Arjunaz78

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.
..In the making of Silent Hill: The Hospital..

https://www.facebook.com/ArjunazGamesStudio

SMF spam blocked by CleanTalk