I am trying to make a fast test here, and I need some help.
So, I am using the Window object to Hide and Show the game window when I press CTRL+Space.
To do this, I use a global variable: VISIBLE, wich starts off 1.
Now, what I would like to do when I press CTRL+SPACE is something like:
IF (VISIBLE = 1) Set VISIBLE to 0
ELSE Set VISIBLE to 1
Tough, I can't find a way to do that IF. Help? Where is that?
Thanks in advance!
EDIT: After toying around, I came up with another problem: when hidden, the game won't be reciving any key presses. Consequently, it won't get the input CTRL+Space (or any other), and so won't show up!