How Do I Make a Menu?

Talk about making games.

How Do I Make a Menu?

Postby iPod » Sun May 20, 2007 5:22 pm

Im not really new to game editor but im not great at scripting, PLEASE HELP me. Im trying to make a game menu that has buttons and things like that.
iPod
 
Posts: 2
Joined: Sun May 20, 2007 4:30 pm
Score: 0 Give a positive score

Postby d-soldier » Sun May 20, 2007 5:29 pm

menu making in GE can be very similar to webpage making. You have have an actor (in this case a menu button) set to change the animation (highlite, lite-up, etc.) when the mouse cursor hovers over it, just by using a mouse-enter/leave event. Mouse-down event to make something happen.
User avatar
d-soldier
 
Posts: 703
Joined: Sun Apr 08, 2007 2:13 am
Score: 61 Give a positive score

Postby iPod » Sun May 20, 2007 6:58 pm

Thanks, but would the code work like?
iPod
 
Posts: 2
Joined: Sun May 20, 2007 4:30 pm
Score: 0 Give a positive score

Postby d-soldier » Sun May 20, 2007 7:38 pm

There should be very little code involved... it's all events. Broken down:
Create an actor to be a button.
Create two seperate animations for the actor (they can be a single frame, but make them different).
Under the actor controls, add both animations to it seperately (would be easiest to name them "on" and "off". Be sure that the actor starts with "off" (by having the "off"animation displayed in the actor-control animation box).
Now click on events/add, mouse enter,add action, change animation, change "animation" to "on", then click the add button, for immediate action.
Now click on events/add, mouse leave,add action, change animation, change "animation" to "off", then click the add button, for immediate action.
Run the game, and move your mouse over the button, the animation will change if you set it up correctly, and change back when the mouse leaves it.
All thats left is to set up a mouse-button-down event, to do whatever you want to do when it is clicked.
User avatar
d-soldier
 
Posts: 703
Joined: Sun Apr 08, 2007 2:13 am
Score: 61 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron