Computer Science Canada back to main menu (GUI Problem) |
Author: | Velocity [ Wed Dec 07, 2011 11:04 pm ] | ||
Post subject: | back to main menu (GUI Problem) | ||
What is it you are trying to achieve? So once i click instructions after the person has read them i want to make it so that there can be a button inside it to return the user to the main menu. What is the problem you are having? Variable has not been declared. It doesnt allow me to put it there!!!!! <<< (in the instructions menu) Describe what you have tried to solve this problem I tried to make different procedures and put them in seperate places... Post any relevant code (You may choose to attach the file instead of posting the code if it is too long) <Answer Here>
Please specify what version of Turing you are using 4.1.1a [size = 48]I want to know how to format it properly so that it works!!![/size] [size = 32]Please help dont mind the messy-ness (I will re organize it after i finish my project!!![/size] |
Author: | Velocity [ Wed Dec 07, 2011 11:05 pm ] | ||
Post subject: | RE:back to main menu (GUI Problem) | ||
|
Author: | Velocity [ Thu Dec 08, 2011 1:15 am ] |
Post subject: | RE:back to main menu (GUI Problem) |
karma to helper cause i was trying for 30 mins now and i cant find no answer to it... Ima hit the sheets cus i got school tomorrow but anyone help is greatly appreciated!!!!! |
Author: | Tony [ Thu Dec 08, 2011 2:23 am ] | ||
Post subject: | RE:back to main menu (GUI Problem) | ||
think about what's on your function call stack. Start poping items off (via terminating function calls) until you are back to where you are. Naturally, you'd find that the relavant part of the code is
Your title menu had to exit for the GUI loop to start. By the time the game starts, the main menu is off the stack. There is nothing to get back to. |
Author: | Velocity [ Thu Dec 08, 2011 8:36 am ] |
Post subject: | RE:back to main menu (GUI Problem) |
so there is no need for a GUI.ProcessEvent? |
Author: | Velocity [ Thu Dec 08, 2011 8:43 am ] |
Post subject: | RE:back to main menu (GUI Problem) |
anyways thanks for trying, i gave you karma anyways. EDIT: I mean thanks for helping me, although i am to stupid to realize what you meant, i guess my mind cant comprehend the knowledge that you put forth... |
Author: | Tony [ Thu Dec 08, 2011 2:10 pm ] |
Post subject: | RE:back to main menu (GUI Problem) |
I was talking about http://en.wikipedia.org/wiki/Stack-based_memory_allocation Once you exit your game's loop, where will the control flow end up? |
Author: | Velocity [ Thu Dec 08, 2011 7:43 pm ] |
Post subject: | RE:back to main menu (GUI Problem) |
Well i got it to work thanks alot guys ![]() |