How Do I Make A Walking Sound Effect?
WGPark
Member Posts: 3
(Mac GameSalad)
Hello, currently I have a level and I have a constrain attribute behaviour telling it to move on the X axis for the speed of 400. However, I cannot find any tutorial on how to play a walking sound whenever the player walks on a platform. How can I do this?
Answers
@WGPark
When player collides with ground play sound "walk"
Ok I got that to work. Now I am trying to make it play a random sound. I did some research and found that I can make an attribute called "walk sound" as an integer and whenever the player collides with the platform to set the value randomly from 1-4 (I have 4 different walk sound effects). Then, create a rule saying if the attribute is 1, play sound 1 etc. However, I can't seem to make these sounds loop (always playing as long as there is collision). I tried the loop group, however, the sound plays too fast.
You could try a timer inside the rule. For example, "every 0.5 seconds, play sound".
Mental Donkey Games
Website - Facebook - Twitter
Is your walking character animated (using the Animation behaviour) ?
Not yet, but I do plan on adding one.