08-08-2011, 01:54 AM
Hi,
I made a song today that I will make another post about later. I would like to share it with you all through putting it into a Buildism game. Would someone please explain to me how to get a sound to play in-game? Here is what I did:
I have a Sound object titled "ThemeSong". I put it in the World obviously, and then I made a script inside of the World (not inside of the ThemeSong
object) that plays the sound. This is how it looks:
[lua]
ThemeSongForGame = game.World.ThemeSong
ThemeSongForGame.Sound = "http://www.mediafire.com/file/myfile.mp3" --Keep in mind that this is a fake link because I don't want anyone to locate my song for download.
ThemeSongForGame:play()
[/lua]
Would someone please tell me what I'm doing wrong? Thank you!
I made a song today that I will make another post about later. I would like to share it with you all through putting it into a Buildism game. Would someone please explain to me how to get a sound to play in-game? Here is what I did:
I have a Sound object titled "ThemeSong". I put it in the World obviously, and then I made a script inside of the World (not inside of the ThemeSong
object) that plays the sound. This is how it looks:
[lua]
ThemeSongForGame = game.World.ThemeSong
ThemeSongForGame.Sound = "http://www.mediafire.com/file/myfile.mp3" --Keep in mind that this is a fake link because I don't want anyone to locate my song for download.
ThemeSongForGame:play()
[/lua]
Would someone please tell me what I'm doing wrong? Thank you!
-CoderRyne
Ryne Thiel
Ryne Thiel