-
Play sound while walking
Need help with sound.
The sample "fast steps" should be played as long as my hero is walking.
Now the sample file is played when the hero starts to move. That's nice so far.
But the sound has to stop when the hero stops and should loop when the hero is still walking.
What's the best way to do that?
-
Here is an example using a counter.
Compare a counter with the number of frames of an animation.
Then everytime the counter his 2 you play a sound.
here is the example using another example I posted.. le ninja guided.
Ninja Guided Example_ walking_with_sound
http://sparckmanforums.weebly.com/up...13326_orig.png
-
Great! It works fine now :).
Thanks for your example Sparckman.