Creating a menu (TGF)
Author: | FierceDeity
|
Submitted: | 2nd September, 2003
|
Views: | 4721
| Rated: |
|
|
Bored of clicking text to select it? Here's how to create a menu which you can highlight the text with the arrow keys then select it with Enter or space.
First create 3 active objects with any different black words and then under "user animation 1" create the same picture but with the text yellow (or anything). Do that for all of the active objects.
(BOTH ANIMATIONS NEED TO BE LOOPING)
Next, create a counter.
Now onto the events page:
Upon pressing "up arrow": subtract 1 from counter
Upon pressing "down arrow": add 1 to counter
Counter<= -1: set counter to 0
Counter>= 2: set counter to 2
Counter = 0: Set active object1's animation to "user animation1"
Set active object2's animation to stopped
Set active object3's animation to stopped
Counter = 1: Set active object1's animation to "stopped"
Set active object2's animation to "user animation1"
Set active object3's animation to "stopped"
Counter = 2: Set active object1's animation to "stopped"
Set active object2's animation to "stopped"
Set active object3's animation to "user animation1"
Then do Active object1's "user animation1" is playing + user presses space(optional) : Do what ever you want eg: change level.
Do that for all of the options
And there you have it! No need to click on menu's anymore!
BTW: this was my first article
|
|
|