Computer Science Canada Issues with background music and looping |
Author: | butler [ Wed Dec 18, 2013 10:25 am ] | ||
Post subject: | Issues with background music and looping | ||
What is it you are trying to achieve? make a math quiz/test that has music playing in background and eventually add graphics What is the problem you are having? music wont play in background and issues with the loops when you get a question wrong and if you finish the test the loop has problems with not stopping Describe what you have tried to solve this problem tried looking on the forums and tried to change the format of the loops used in the code
Please specify what version of Turing you are using 4.1.1 |
Author: | Raknarg [ Wed Dec 18, 2013 1:48 pm ] |
Post subject: | RE:Issues with background music and looping |
That's because music.play doesn't run in the background, it only runs when you call it. You could use actual music, that would play in the background |
Author: | Dreadnought [ Wed Dec 18, 2013 4:17 pm ] |
Post subject: | Re: Issues with background music and looping |
To play music in the background (either music that you create or a music file) you need to fork a separate process that plays the music while your game runs. You can think of each process as a separate program while it runs. This is exactly what Music.PlayFileReturn and other similar functions do to play music in the background. |
Author: | Raknarg [ Wed Dec 18, 2013 4:34 pm ] |
Post subject: | RE:Issues with background music and looping |
Not true, actually. You can play music without it being in a process. I used to do it when I used Turing. |
Author: | Dreadnought [ Wed Dec 18, 2013 5:03 pm ] |
Post subject: | Re: Issues with background music and looping |
Raknarg wrote: Not true, actually. You can play music without it being in a process. I used to do it when I used Turing. There is a process either in your code or in the Turing source code (found under "Turing 4.X -> predefs"). |
Author: | Raknarg [ Wed Dec 18, 2013 5:54 pm ] |
Post subject: | RE:Issues with background music and looping |
Oh. Well nevermind then. |