Computer Science Canada Problem returning to GUI |
Author: | landfarm [ Sat Dec 05, 2009 11:03 pm ] | ||
Post subject: | Problem returning to GUI | ||
What is it you are trying to achieve? I want the program to return back to the GUI after the animation is finished. My Turing version is the latest version, 4.1.1 or something. What is the problem you are having? The program will replay one of the two songs after the animation is done, and nothing else moves. The animation exited, but one of the songs would be replayed. Describe what you have tried to solve this problem I have absolutely no idea what is wrong, or how to fix it. Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)
|
Author: | landfarm [ Mon Dec 07, 2009 8:47 pm ] |
Post subject: | RE:Problem returning to GUI |
Nobody? Dammit. |
Author: | Tony [ Mon Dec 07, 2009 8:56 pm ] |
Post subject: | RE:Problem returning to GUI |
you didn't post the complete Animation code. Chances are, you are not resetting the variables to their initial states for the reply. |
Author: | landfarm [ Fri Dec 11, 2009 9:56 pm ] |
Post subject: | Re: Problem returning to GUI |
I thought that part would have been enough. Well, here is the whole file. I just started Turing this year, and my comments may be a bit off, as in not descriptive enough. Hopefully, you guys can solve the problem because my teacher couldn't. |
Author: | TheGuardian001 [ Sat Dec 12, 2009 3:08 pm ] | ||
Post subject: | Re: Problem returning to GUI | ||
For future reference, In most cases if you haven't given us enough code for the program to actually run, it's probably not enough code, since we can't run the program to duplicate the problem. I'm assuming the problem is in the animation part, as the rest seems to runs fine.
The music playing lines (such as the one above) appear to be one of the problems. Instead of looping Music.PlayFile, you should be using Music.PlayFileLoop. Changing those should fix the problem. |
Author: | landfarm [ Sat Dec 12, 2009 3:40 pm ] |
Post subject: | RE:Problem returning to GUI |
Lemme try that. I am wondering though, why does the other song not reloop though? Is it because the song had completely finished playing? Yea, thanks. It works now. ![]() |