How do I organize sounds inside event sheets in one group.

Get help using Construct 2

Post » Fri Aug 28, 2015 4:16 pm

Actually when the player do an attack, something is broken or for anything i add a sound in that action.

The problem is that when i want to change, remove or modify i have to search in the groups until find where is the event that plays the audio.

Instead that my idea is have a group called "Sounds" on i put all the sound events.

To do that the only thing i know is duplicate the event on that group with only the play audio and erase from the original condition that have other events. With that i will have all the sound events organized on a group to found and edit more easily.

But this method about duplicate events, well... maybe can have some problems in the future and i guess will be another easy way to do the same.

So ¿How can i organize the sounds events in one group without duplicate events?
B
23
S
10
G
3
Posts: 542
Reputation: 4,434

Post » Fri Aug 28, 2015 4:30 pm

@matriax

You could use functions. Create a function for each sound you want to play. Put all the sound functions in a Group.
Then, where ever you want to play a sound in your code, just call the appropriate function.
B
94
S
33
G
20
Posts: 438
Reputation: 17,615

Post » Fri Aug 28, 2015 4:38 pm

@AllanR Oh! another thing learned today :P thanks!

And there is no problem to use a lot of "call functions" at the same time? I don't know if this can drop the frame rate or something, or i can use it all the times that i want without problem.
B
23
S
10
G
3
Posts: 542
Reputation: 4,434


Return to How do I....?

Who is online

Users browsing this forum: Ryan Kocourek and 3 guests