Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 18,388 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Menu Question #118961
03/22/07 19:32
03/22/07 19:32
Joined: Dec 2005
Posts: 40
M
mbmSOG Offline OP
Newbie
mbmSOG  Offline OP
Newbie
M

Joined: Dec 2005
Posts: 40
Hey everyone,

I've been looking around and just can't seem to find this anywhere. I'm trying to make my game mouse free and to do this the main menus need to be mouse free. (what i mean by mouse free is that you dont have to use a mouse to access the menu). The only problem is i'm not sure how to do this. How can I make a menu that is controlled only by the keyboard?

Any small examples or pieces of code would be great, even a link to how this has been done. Any help would be wonderful. Thanks Mike

Re: Menu Question [Re: mbmSOG] #118962
03/22/07 21:47
03/22/07 21:47

A
Anonymous
Unregistered
Anonymous
Unregistered
A



just one idea to handle with keys... (not a script, just a hint...)


panel_menu.visible=on;

while(panel_menu.visible==on){

if(key_a==on){function_a();}
if(key_b==on){function_b();}
if(key_c==on){function_c();}
if(key_d==on){function_d();}
if(key_x==on){panel_menu.visible=off;}

wait(1);
}


Re: Menu Question [Re: ] #118963
03/22/07 22:17
03/22/07 22:17
Joined: Jan 2007
Posts: 36
Montana
webgovernor Offline
Newbie
webgovernor  Offline
Newbie

Joined: Jan 2007
Posts: 36
Montana
Another idea would be to use the arrow keys, something like

while(menu.visible) {
on_a = my_down_function;
on_w = my_up_function;

wait(1);
}

This way, the "w" key moves cursor up, and the "a" key moves it down, you need to make the functions "my_down_function" and "my_up_function", and maybe use panels for the menu button, this way you can dynamically change the BMAP.

Just an idea.

Good luck!

Re: Menu Question [Re: webgovernor] #118964
03/23/07 03:11
03/23/07 03:11
Joined: Dec 2005
Posts: 40
M
mbmSOG Offline OP
Newbie
mbmSOG  Offline OP
Newbie
M

Joined: Dec 2005
Posts: 40
Thanks for the replys. I think i'm going to give the "function" up and down method a try. I'll keep my progress posted here for anyone that might be interested.


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1