How do I audio

Get help using Construct 2

Post » Wed May 20, 2015 7:25 am

how can I play sounds from external url?
Perhaps modified the audio plugin to add new action, load/play from url.
B
33
S
8
Posts: 62
Reputation: 2,043

Post » Wed Aug 31, 2016 5:10 pm

you can do it...but its not a supported feature of c2

first off, ALL of your sounds need to be grabbed this way, cannot have any sounds within c2.

when you export your project (html5 web for instance) ....
- open the the data.js file in your favorite text editor and find "/media" (towards the bottom) and change it to "http://www.yoursite.com"

when calling the audio from the c2 audio plug in:
- use play (by name)
- in the "audio file name" put your file path "/myGameSounds/laserShot"

hope this helps!

-mubot
B
26
S
5
G
1
Posts: 31
Reputation: 1,398


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 4 guests