2DWorlds Forums
Music Player - Printable Version

+- 2DWorlds Forums (http://2dworlds.buildism.net/forum)
+-- Forum: 2DWorlds (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=4)
+--- Forum: Scripting (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=13)
+--- Thread: Music Player (/showthread.php?tid=1087)

Pages: 1 2


Music Player - Jacob__mybb_import1 - 10-17-2010

Put the sound you want to play and a BooleanValue called Playing in the play button, then put a script inside it:
Code:
link(script.Parent.Clicked, function()
    if script.Parent.Playing.Value then
        script.Parent.Sound:stop()
        script.Parent.Playing.Value = false
    else
        script.Parent.Sound:play()
        script.Parent.Playing.Value = true
    end
end)

Players can then click the button to start and stop the music.


RE: Music Player - Qwertygiy - 02-09-2011

Can you 'upload' music? If so, how? Do you just type it in?


RE: Music Player - Jacob__mybb_import1 - 02-09-2011

Not on Buildism, but you can upload your sound somewhere else and link to it. First, upload your sound somewhere. The click Edit>Insert Object and then Sound, then change the Sound property of the sound to the correct URL.


RE: Music Player - Qwertygiy - 02-09-2011

It won't let me attach one to the thread though... Sad
Also, do you know somewhere where I could upload a sound? If you don't, I might just have to be sneaky and steal ROBLOX music :loneranger:


RE: Music Player - Jacob__mybb_import1 - 02-09-2011

Try a free web host. Some of them might not allow remote linking, you'll have to test.


RE: Music Player - Qwertygiy - 02-09-2011

Ok. I think I'll test to see if I can use the existing ROBLOX sounds, and if I can exploit my way into the sounds that you can no longer use on ROBLOX.


RE: Music Player - Platypus - 02-26-2011

(02-09-2011, 09:51 PM)Jacob_ Wrote: Not on Buildism, but you can upload your sound somewhere else and link to it. First, upload your sound somewhere. The click Edit>Insert Object and then Sound, then change the Sound property of the sound to the correct URL.

A great website to go for sound Url's without having to unload them is www.soundbible.com. I go there alot for sounds and such.


RE: Music Player - Qwertygiy - 03-18-2011

I can't get ANY non-resource sounds whatsoever to work on Buildism. That includes sounds stored on my computer, in C:\WINDOWS\Media, and ones that pull up WMP when you type the URL in IE. (Acryonymity!) Anyway, they never work. Does anybody else have a URL that WORKS for them so I can see if it's just me, if I'm not looking in the right places somehow, or if Buildism is just bugged?


RE: Music Player - Jacob__mybb_import1 - 03-19-2011

Sounds stored on your computer won't play, even for you.

What file type were the online sounds you tried?


RE: Music Player - Qwertygiy - 03-19-2011

(03-19-2011, 02:54 AM)Jacob_ Wrote: What file type were the online sounds you tried?
Mostly mp3... I can't remember if I tried any .wavs, and I know I didn't try any .mids.
Can Buildism only play .wavs or something?