Computer Science Canada Need help with turing game menu |
Author: | Shamoy [ Wed May 07, 2014 4:45 pm ] |
Post subject: | Need help with turing game menu |
So im making a game in turing and im using loops, if statements, and mousewhere for a flat design button. The only problem is that when I press the button and let go, it doesnt take me to the next part of the program. Can anyone help me on this? Thanks ^_^ |
Author: | Raknarg [ Wed May 07, 2014 9:16 pm ] | ||
Post subject: | RE:Need help with turing game menu | ||
Correct me if I'm wrong, but it doesn't look like there is a next part of the program. This is all I have in the main loop:
|
Author: | TWizard [ Thu May 08, 2014 2:18 pm ] |
Post subject: | RE:Need help with turing game menu |
The question now is, where do you want the next part to be? you will need to create another menu image, and type out more positions for the menu items you want to have. |
Author: | Shamoy [ Thu May 08, 2014 4:14 pm ] |
Post subject: | Re: Need help with turing game menu |
my plan is to display another picture when the game starts but i dont know what to do to make it exit the loop after i click it and let go |
Author: | Raknarg [ Thu May 08, 2014 4:38 pm ] | ||
Post subject: | RE:Need help with turing game menu | ||
Maybe keep track of the clicking state. If It was clicking in the previous frame, but now it is not, then you know the user has clicked the button.
|
Author: | Shamoy [ Sat May 10, 2014 10:16 am ] |
Post subject: | Re: Need help with turing game menu |
how would i be able to integrate that into my code though? |
Author: | Shamoy [ Sat May 10, 2014 2:06 pm ] | ||
Post subject: | Re: Need help with turing game menu | ||
so i updated it and wanted to see if i could make it exit this way but the problem is that after i click it, i want it to exit when i let go of it (not when i directly click it)
|