I am using the following code to show a pop up menu.....
if scancode()=48
buymenu=1
else
buymenu=0
endif
if buymenu=1
paste image 1001,600,300
set cursor 630,360: Print "press 1 to buy a mining vessel"
endif
if buymenu=1 and scancode()=2
money(0)=money(0)-500
set cursor 500,500: print "mining vessel purchased"
endif
When the B key is pressed (scancode 48) the menu appears, when the B key is released the menu dissapears, great thats what I wanted. However, it appears that DB doesn't register two keys being pressed at the same time, so that makes that last bit of code useless, because it would require you to hold down the B key and then press number 1 on the keyboard to trigger the action, so what I am wondering, is how I can make it so that whan b is pressed the menu appears, and when b is pressed again, the menu dissapears, so far I have tried the following and it didn't work...
if buymenu=0 and scancode()=48
buymenu=1
if buymenu=1 and scancode()=48
buymenu=0
endif
endif
If I use that, the menu doesn't appear at all, so how would I accomplish this?
Thanks.
Guns arn't the problem, people are the problem, shoot all the people and guns arn't a problem anymore.