Computer Science Canada Ending Music |
Author: | BigBear [ Fri Feb 15, 2008 5:23 pm ] | ||
Post subject: | Ending Music | ||
I have a game i am working on and is almost finished I had music in it using Music.PlayFile but now I want it to be old school and have retro music using Sound or Turing's Play commands. However I used to Music.PlayFileStop and that worked fine but now I really need help ending the game music when I return to the main menu.
I made this program to demonstrate my problem. This would work if I had one Play command but I am wondering if there is another way? And when I put all my Play commands in one an error says "String literal is too large" |
Author: | BigBear [ Sat Feb 16, 2008 11:32 am ] |
Post subject: | Re: Ending Music |
I have made most of my music on one line but still need a solution. Any Idea's |
Author: | Clayton [ Sat Feb 16, 2008 12:40 pm ] | ||
Post subject: | RE:Ending Music | ||
BigBear wrote: "String literal is too large"
This means that the string you are trying to pass to Music.Play() is over the maximum allowable length of 255 characters. So why not just:
|
Author: | BigBear [ Sat Feb 16, 2008 1:05 pm ] |
Post subject: | Re: Ending Music |
Yes that would work but I do not want to repeat the same line. The music I want is over 255 characters. Why doesn't ending multiple lines like that work? I guess I will just use a mid file, but then the music isn't done by me. O well. |