View Single Post
  #1  
Old 06-20-2002, 07:19 AM
Gohan43331 Gohan43331 is offline
Registered User
Join Date: Jan 2002
Posts: 87
Gohan43331 is on a distinguished road
Send a message via AIM to Gohan43331
If you are looking for a menu type thing, I might be able to start you off:
First: When the player does something, set off a timeout with "timeout = .05;"
Next you want to check for keydowns and such, ex: up = 0, left = 1, down = 2, right = 3. Sideways, Up/down...anything that bursts your bubble.
NPC Code:

if (timeout) {
if (keydown(0)) {
this.choose--; // Menu Chooser Up
}
if (keydown(2)) {
this.choose++; // Menu Chooser Down
}
timeout = .05; // Continue the loop.
}


Then you want to display stuff, which would be showimg (check commands.rtf for syntax.
Then after that, the selector...check commands.rtf under keydown() for the numbers for other keys besudes up/down/left/right.
I probably said a little too much for my liking... :-/
Gohan
__________________