Author |
Message |
happyface
|
Posted: Thu Jun 15, 2006 2:56 pm Post subject: F1 For Help... |
|
|
How can I make it so that if I press F1 (or another key like H) during my program, it will execute a help text file?
I tried Input.KeyDown in a process but thats not working.
Thanks. |
|
|
|
|
|
Sponsor Sponsor
|
|
|
Delos
|
Posted: Thu Jun 15, 2006 3:03 pm Post subject: (No subject) |
|
|
Hello and welcome.
As a general tip, please include your code in some form when you post a question. It makes us helping you a lot easier when we have something to work with.
This particular instance has far too many possible areas of concern to be answered sans code. Also, remember to use [code] tags when posting! |
|
|
|
|
|
happyface
|
Posted: Thu Jun 15, 2006 3:17 pm Post subject: (No subject) |
|
|
I'm sort of new to turing. My code is long and pretty messy but I'l post it anyway for people to try out and try to help me
Theres pictures and an i/o file that need to be in the same dir. |
|
|
|
|
|
TheOneTrueGod
|
Posted: Thu Jun 15, 2006 3:24 pm Post subject: (No subject) |
|
|
What possible concerns are there with using F1 + I/O?
Anyways, while processes are one way of doing it, why not just have a procedure that displays the help on the screen, and then call this whenever it is needed? Use Input.KeyDown, and look at the [Turing Walkthrough] for some help on file I/O. |
|
|
|
|
|
happyface
|
Posted: Thu Jun 15, 2006 3:38 pm Post subject: (No subject) |
|
|
Concerns of using F1 with I/O? Not sure but I can use another key if thats a problem.
I understand I/O, my real question is how I get the program to constantly check if the user is pressing the help key assigned. |
|
|
|
|
|
TheOneTrueGod
|
Posted: Thu Jun 15, 2006 4:12 pm Post subject: (No subject) |
|
|
same way you, say, check if the up key is held down |
|
|
|
|
|
|