Playing a .wav file using scripts

Description: Have idea for a script, but you can't make it? Post it here!
Moderators: Lx Xzit, Yoshi021, 5438A38A, Moderators, Semi-moderatos

Bigadre
Topic author, Duke
Duke
Avatar
Bigadre
Topic author, Duke
Duke
Age: 18
Reputation: 1
Posts: 123
Joined: 30 Jan 2018
Location: The dream star
YouTube

Post #1by Bigadre » 28 May 2018, 10:43

is there a possible way to play a wav file using scripts?
Download an episode here!
Would you like to contribute to Project SMBX COLAB? Then click here
Check out my YT: Dredregame specialist!


note: it doesn't look like many people notice me, so i'm pretty unknown in the comunity. i seriously try my best on anything i do...

;-;
If my episode isn't good enough, please keep it inside as it kinda destroys my urge to keep playing... thank you

Eri7 M
Count
Count
Avatar
Eri7 M
Count
Count
Age: 17
Reputation: 73
Posts: 262
Joined: 19 Dec 2016
Location: Germany , Bonn

Post #2by Eri7 » 28 May 2018, 14:47

Yes with Audioset.
Join the discord server about Nova Projects.
Image

I support:
Image

Bigadre
Topic author, Duke
Duke
Avatar
Bigadre
Topic author, Duke
Duke
Age: 18
Reputation: 1
Posts: 123
Joined: 30 Jan 2018
Location: The dream star
YouTube

Post #3by Bigadre » 28 May 2018, 19:34

Eri7 wrote:Yes with Audioset.

When i tried audioset, it played wart's bubble sound instead of the .wav file
Download an episode here!
Would you like to contribute to Project SMBX COLAB? Then click here
Check out my YT: Dredregame specialist!


note: it doesn't look like many people notice me, so i'm pretty unknown in the comunity. i seriously try my best on anything i do...

;-;
If my episode isn't good enough, please keep it inside as it kinda destroys my urge to keep playing... thank you

Yave Yu M
Marquis
Marquis
Avatar
Yave Yu M
Marquis
Marquis
Age: 23
Reputation: 36
Posts: 169
Joined: 25 Jan 2016
Website

Post #4by Yave Yu » 15 Oct 2018, 13:44

First you need to load SFX, use Call AudioSet(1,ID,0,"Your Filename"), the ID can be more than 92. After load SFX, use Call AudioSet(2,ID,0,"") to play, leave "" blank.
Visit my YouTube channel Yave Yu!

Lx Xzit M
Moderator
Moderator
Avatar
Lx Xzit M
Moderator
Moderator
Reputation: 216
Posts: 498
Joined: 9 Nov 2015
Website

Post #5by Lx Xzit » 16 Oct 2018, 7:27

example loading a sound effect:
call audioset(1, 99, 0, "\myCustomSong.wav")

to play it just use the ID assigned to it, in this case 99.

(Worth to note that in the given example the sound effect is located in the same folder as the .lvl file, so if you put it inside the graphics' folder you should specify it in the filepath)
[size=100][b]VISIT MY YOUTUBE CHANNEL![/b] [url=https://www.youtube.com/channel/UC_AcXEExdYtaydxcCVPSGoQ]LX XZIT[/url][/size]
[size=100]Join our 38A Discord server! [url= https://discord.gg/7hCmNBE]CLICK HERE[/url][/size]

Bigadre
Topic author, Duke
Duke
Avatar
Bigadre
Topic author, Duke
Duke
Age: 18
Reputation: 1
Posts: 123
Joined: 30 Jan 2018
Location: The dream star
YouTube

Thanks

Post #6by Bigadre » 17 Oct 2018, 9:51

Thanks for the help :)
Download an episode here!
Would you like to contribute to Project SMBX COLAB? Then click here
Check out my YT: Dredregame specialist!


note: it doesn't look like many people notice me, so i'm pretty unknown in the comunity. i seriously try my best on anything i do...

;-;
If my episode isn't good enough, please keep it inside as it kinda destroys my urge to keep playing... thank you


Return to “Script requests”

Who is online (over the past 5 minutes)

Users browsing this forum: 1 guest