UPDATE:
Well it appears that console does not support any commands other than print or input.
From the manual :
"The following program demonstrates the use of the two BlitzPlus console commands Print and Input."
I will leave this message here in case others run into the same issue.
old message--------------------------------------
Any help would be appreciated. I am working on a text game which I would like to be console rather than printing text to a window.
However I have been unable to get getkey() to work using console.
In the following example if the graphics mode line is commented out then a keystroke is never detected. If it remains the keystroke is only ever detected if the blank graphics window is selected rather than the console window.
Any advice would be welcomed.
Thanks in adavnce
;***********************START CODE**************************
Graphics 800,600,16,2 ; set resolution, if this is removed, console displays but keys never detected.
;***********************MAIN MENU********************************
.mainmenu ; start of main menu loop
.statusreturn
FlushKeys
Print seasonname$
Print "1 status"
Print "2 recruit"
Print "3 war"
Print "4 peace"
Print "5 trade"
Print "6 revelry"
Print "9 quit"
;.waitforkey
WaitKey()
If KeyDown(2) Then Print "status";if key detected then print selected option
If KeyDown(3) Then Print "recruit"
If KeyDown(4) Then Print "who_attack"
If KeyDown(5) Then Print "peace"
If KeyDown(6) Then Print "trade"
If KeyDown(7) Then Print "revelry"
If KeyDown(10) Then End
Goto statusreturn
End
Well it appears that console does not support any commands other than print or input.
From the manual :
"The following program demonstrates the use of the two BlitzPlus console commands Print and Input."
I will leave this message here in case others run into the same issue.
old message--------------------------------------
Any help would be appreciated. I am working on a text game which I would like to be console rather than printing text to a window.
However I have been unable to get getkey() to work using console.
In the following example if the graphics mode line is commented out then a keystroke is never detected. If it remains the keystroke is only ever detected if the blank graphics window is selected rather than the console window.
Any advice would be welcomed.
Thanks in adavnce
;***********************START CODE**************************
Graphics 800,600,16,2 ; set resolution, if this is removed, console displays but keys never detected.
;***********************MAIN MENU********************************
.mainmenu ; start of main menu loop
.statusreturn
FlushKeys
Print seasonname$
Print "1 status"
Print "2 recruit"
Print "3 war"
Print "4 peace"
Print "5 trade"
Print "6 revelry"
Print "9 quit"
;.waitforkey
WaitKey()
If KeyDown(2) Then Print "status";if key detected then print selected option
If KeyDown(3) Then Print "recruit"
If KeyDown(4) Then Print "who_attack"
If KeyDown(5) Then Print "peace"
If KeyDown(6) Then Print "trade"
If KeyDown(7) Then Print "revelry"
If KeyDown(10) Then End
Goto statusreturn
End