Computer Science Canada Looping Issues: Procedure Blockage |
Author: | Demagogue [ Fri May 16, 2008 5:02 pm ] | ||
Post subject: | Looping Issues: Procedure Blockage | ||
The problem with a program is that, when used as a procedure, it blocks all procedures that come after it. And I see the problem, the loop within is still running. But if I don't run it, the animation on the buttons (colour change on hover) won't run and would make the whole effort worth nothing. How do I tackle this?
|
Author: | riveryu [ Fri May 16, 2008 7:06 pm ] |
Post subject: | Re: Looping Issues: Procedure Blockage |
Hi, Demagogue I think you can solve the problem by putting an exit when (mouse clicked a button) . Furthermore, record down which button the user clicked, then exit the loop, using if and then determine wat to do after. Ex. user clicks play, exits menu, if (user clicked instructions) then (lauch instructions)end if. Anytime you want to return to menu, just reset variables and lauch menu again. Hope this helps. Sry if it doesnt.[/b] |