Simple sound plugin

Discussion and feedback on Construct 2

Post » Thu Feb 10, 2011 10:17 pm

A simple plugin with one action: Play sound.
It uses html5 audio, so it should be able to play ogg, mp3 and wav files if the browser you use has it implemented.

It only works with exported projects right now. Any sound files you use need to be in the same folder as the exported project.

No sound will be played if you just preview the project. The preview can't find the files. I have no solution for this atm.

Download:
[url:1vmkyjgs]http://dl.dropbox.com/u/5426011/c2/simple%20c2%20sound%20plugin.zip[/url:1vmkyjgs]
To install extract to the "Construct2-Win32\exporters\html5\plugins\" directory.

Feel free to modify.
B
79
S
24
G
54
Posts: 4,753
Reputation: 40,769

Post » Thu Feb 10, 2011 10:45 pm

Thank you!
Image Image
B
161
S
48
G
91
Posts: 7,358
Reputation: 67,271

Post » Mon Feb 14, 2011 7:51 pm

Great plugin.
B
19
S
6
G
7
Posts: 1,206
Reputation: 7,300

Post » Wed Feb 16, 2011 6:27 pm

Awesome! Thank you!
B
32
S
3
G
2
Posts: 57
Reputation: 3,692

Post » Sun Mar 06, 2011 9:19 pm

Very helpful thank you. :)
B
1
G
1
Posts: 3
Reputation: 431

Post » Fri Mar 11, 2011 4:24 am

So I assume that when you have the action "Play Sound", it works much like the "App Path" thingy C.X had? Or do I have to make the project as a file, and then put the sound in that file? -Sorry if that's confusing-


EG,

I have action Play sound, and the file is:

"Project / Sounds / Sound.wav"?
Check out my VGM on my soundcloud page!
Video-Game Music: E.C.2151
B
7
S
2
G
2
Posts: 193
Reputation: 1,561

Post » Fri Mar 11, 2011 11:55 am

[quote:1j0lo5kz]So I assume that when you have the action "Play Sound", it works much like the "App Path" thingy C.X had? Or do I have to make the project as a file, and then put the sound in that file? -Sorry if that's confusing-[/quote:1j0lo5kz]

The sound files are relative to the html page of the project when you preview or export. I haven't figured out a way for the plugin to find the sound files if they are in the capx file or project folder. It is only really usable when you export the project, and copy all your sound files to the same folder.
B
79
S
24
G
54
Posts: 4,753
Reputation: 40,769


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 8 guests