Computer Science Canada going back to the main page of game... |
Author: | air_force91 [ Tue Jan 13, 2004 7:13 pm ] | ||
Post subject: | going back to the main page of game... | ||
here's the thing...ive got this huge project and only 3 days left to complete it...im getting really stressed out and need some of ur help...now on my "instructions page" i want to add the possibility of a user clicking on the screen to be taken to the "choice page" where different options are available...the problem is im new in the turing area and can''t figure out the solution...here's my game so far...and the "game page" will contain different parts of the computer which are to be dragged onto the oher side of the screen and placed in the correct box...
i hope i can get this done by friday...i need ur help...and i was wondering how i could use the "procedure" command inside an "if" statement...coz i get an error whenever i use the command..i want a text delay effect (every word appears after a small delay) in the instructions page...thanx soooooooooooooooooooooooo much for ur help!!!! |
Author: | air_force91 [ Tue Jan 13, 2004 7:15 pm ] |
Post subject: | |
i forgot to mention that the "choice page" comes before the "instructions page"...so the user has to click on the "instructions" button to get to the "instructions page" and if the user wants to go back to the "choice page"....he/she needs to click on the screen...but how do program the game for the user to be taken back to the "choice page" whenever he or she clicks on a box at the bottom of the window on every page of the game? |
Author: | DanShadow [ Tue Jan 13, 2004 7:44 pm ] |
Post subject: | |
Put a loop before the first loop, then redeclare what all the variables are equal to. (what you want them to be, if u want to change them) Also put another end loop after the end loop. then in the middle loop, put an exit command where you want to restart your program. Hope this helps! |
Author: | air_force91 [ Wed Jan 14, 2004 6:27 am ] |
Post subject: | |
im sorry...i don't get it...where does the loop begin and end? |
Author: | DanShadow [ Wed Jan 14, 2004 8:31 am ] | ||||
Post subject: | |||||
This is your code:
Here is what it should be like:
Do you understand? This way, when your exit condition is fufilled, it restarts the program in a way. But if you want to really restart your program, right under t he first loop, redeclare want you want all the variables to be equal to. Pretty easy 8) |
Author: | air_force91 [ Wed Jan 14, 2004 4:27 pm ] |
Post subject: | |
i thought i got what u meant but i tried it and it doesn't work...what i was doing is inserting a loop in the "Instructions page"...at the beginning and i didn't redeclare any variables coz i don't know what u mean...can u pls cut and paste my code and insert the things u told me to do...coz i don't understand...im sorry... |