add sound for walk or running foot step

Get help using Construct 2

Post » Wed May 08, 2013 4:08 am

Need help here..

How I can add audio to my player when player was walk or running.

I have done this before, but it's not look to good.
I think it was 100% error or fail.

I just put the sound when key press left or right.
It's works fine but when Player jump and I still press left or right the foot step sound still played.

And when I use collision. When Player collision with Ground or Floor, foot step will played. This works but the foot step sound will LOOP and can't stop.

I'm new in Construct 2. Of Course to many thing I didn't know.
Hope someone will help with this AUDIO PROBLEM.


Thanks..
B
32
S
5
G
3
Posts: 49
Reputation: 5,167

Post » Wed May 08, 2013 4:42 am

Use compare animation frame and select the frame where his foot hits the ground, then play the sound on that animation frame.
B
10
S
3
G
3
Posts: 234
Reputation: 3,467

Post » Wed May 08, 2013 5:04 am

how?

where's the even compare animation ??
B
32
S
5
G
3
Posts: 49
Reputation: 5,167

Post » Wed May 08, 2013 5:38 am

B
10
S
3
G
3
Posts: 234
Reputation: 3,467

Post » Wed May 08, 2013 5:53 am

I found it.
But how to set it to frame animation RUN?

In my animation RUN the frame 3 is touch the ground.

Do I need IMAGE POINT to set that sound?
B
32
S
5
G
3
Posts: 49
Reputation: 5,167

Post » Wed May 08, 2013 6:12 am

Um...Do compare animation and compare frame, otherwise it will compare any frame of any animation.

If you're asking how to set an animation, for a platformer if, just do something like this "is platforming left, set animation to running"
Or you can just do "is left key being held" or something. Use mirror and not mirror to flip the animation over.
B
10
S
3
G
3
Posts: 234
Reputation: 3,467

Post » Wed May 08, 2013 7:26 am

Are you using the platform behavior?
If So:

--Key is Down
and
--Platform is on floor
------------------------------------Play sound
B
94
S
29
G
11
Posts: 1,545
Reputation: 20,993

Post » Wed May 08, 2013 8:00 am

Do you have a sample for this tutorial?
I'm sorry cause in new here
B
32
S
5
G
3
Posts: 49
Reputation: 5,167

Post » Wed May 08, 2013 5:03 pm

Well first question, is your character using the Platform Behavior?
B
94
S
29
G
11
Posts: 1,545
Reputation: 20,993

Post » Wed May 08, 2013 5:35 pm

yes, my player have

Idle , Run, & Jump
B
32
S
5
G
3
Posts: 49
Reputation: 5,167

Next

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 12 guests