Computer Science Canada Assistance required with structuring a game similar in function to MYST. Mainly switching screens |
Author: | goodatjavabadatturing [ Wed May 24, 2023 9:32 am ] | ||
Post subject: | Assistance required with structuring a game similar in function to MYST. Mainly switching screens | ||
What is it you are trying to achieve? Attempting to create a MYST-like game where screens are switched bwtween using buttons, and puzzles are found throuhgout. What is the problem you are having? I seem to have issues with handling more than 2 screens thanks to the way turing interperets proccesses. Is there any way to Correct this issue and have it run as intended? Describe what you have tried to solve this problem I have reordered the procedures multiple times, and attempted to bypass the issue by seperating the processes into their own files and using the include command on all of them at the same time. This does not work either 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 OpenTuring 1.0.1 under wine, KDE NEON 5.27 |
Author: | scholarlytutor [ Sat May 27, 2023 4:59 am ] |
Post subject: | RE:Assistance required with structuring a game similar in function to MYST. Mainly switching screens |
I tried running your code, but I was informed that 'puzzle' has not been declared. As just some general advice, to simply click the screen and have it switch to another screen, the GUI module is not needed at all, and you can potentially write your code without any processes. It's simpler (at least in my opinion) to use the mousewhere procedure. If you need more than one Window, use the Window module. I don't have much experience with the GUI module, but if you repost your code so that I can run it, along with pic files, I'll try to see if I can help. Otherwise, give mousewhere a try. |
Author: | Link1400 [ Sat May 27, 2023 2:36 pm ] |
Post subject: | Re: RE:Assistance required with structuring a game similar in function to MYST. Mainly switching screens |
scholarlytutor @ Sat May 27, 2023 4:59 am wrote: I tried running your code, but I was informed that 'puzzle' has not been declared.
As just some general advice, to simply click the screen and have it switch to another screen, the GUI module is not needed at all, and you can potentially write your code without any processes. It's simpler (at least in my opinion) to use the mousewhere procedure. If you need more than one Window, use the Window module. I don't have much experience with the GUI module, but if you repost your code so that I can run it, along with pic files, I'll try to see if I can help. Otherwise, give mousewhere a try. ok hello there forgot the password to my old account yeah i restructured it all to use 3 gui buttons for left, right and center rooms. the issue is fixed now. sorry about this turns out I overcomplicated things, and it could have been done much easier than i originally intended |
Author: | scholarlytutor [ Sun May 28, 2023 9:19 am ] |
Post subject: | RE:Assistance required with structuring a game similar in function to MYST. Mainly switching screens |
No worries! |