[SOLVED] How do I Add Sound Effects to Each Animation Frame

Get help using Construct 2

Post » Wed Apr 18, 2018 1:24 am

Message: SilverSound95 can only post plain text URLS until they have 500 rep. 2 URLS modified. Why?
Hello, this is my first time posting here to get help.

So, I'm trying to add in different footstep sound effect in every animation frame.

I read everything in here:
how-do-i-set-a-sound-effect-to-a-specific-animation-frame_t166400
I tried the same thing but for some reason it's not working for me. The sound just won't play.

https://imgur.com/a/3VzJg
First image is the code

https://imgur.com/a/3VzJg
I'm trying to add different footsteps for frame 1,2 and 3. In second image

Can anyone help me out with this?

Thank you so much!
Last edited by SilverSound95 on Mon Apr 23, 2018 5:00 am, edited 1 time in total.
B
4
Posts: 3
Reputation: 206

Post » Wed Apr 18, 2018 2:12 am

You don't need that Trigger Once.

Remove it. And then test it..
Howdy, I'm HenryPK! I love helping people and making games... Hope we can be friends. (Actually developing Blue in Bitwin Entertainment: https://gamejolt.com/games/blue/321184)
B
11
S
3
G
1
Posts: 68
Reputation: 1,374

Post » Wed Apr 18, 2018 2:15 am

Thank you for the reply. I removed the trigger once but it still not working. :(
B
4
Posts: 3
Reputation: 206

Post » Wed Apr 18, 2018 12:59 pm

Alright so, put back that trigger once at the bottom...
I tested here, and it works fine to me...

I created two events (one handling the animations with the mouse, making the run animation play only when left mouse is down), and another to handle the footsteps... like this:

Mouse | Left Button is down | Set Sprite Animation to Run
System | Else | Set Sprite Animation to Stand

Sprite | Is Animation "Run" playing | Play Coin not looping at volume 0 db (tag "")
Sprite | Animation frame = 1
System | Trigger Once


Here is a capx:
https://www.dropbox.com/s/mf8d3bub61kv5 ... .capx?dl=0
Howdy, I'm HenryPK! I love helping people and making games... Hope we can be friends. (Actually developing Blue in Bitwin Entertainment: https://gamejolt.com/games/blue/321184)
B
11
S
3
G
1
Posts: 68
Reputation: 1,374

Post » Mon Apr 23, 2018 5:02 am

Wow! I downloaded your file and copied events that you created and it worked!

Muito obrigado!
B
4
Posts: 3
Reputation: 206


Return to How do I....?

Who is online

Users browsing this forum: ChenBr and 53 guests