how do I make buttons

Ok, so I want to make a game but a major part of it involves buttons. How would i go about making menus, and other pop up buttons etc. Thanks in advance.

Put the buttons/menus in an overlay scene (using the Scene>Add Overlay Scene actuator).

Either show the system mouse cursor or create an object which follows the mouse (tutorial by blendenzo)

Use this logic-brick setup to see if a button is pressed.

Attachments


Thank you so much, I have been trying to figure it out for a couple of days.:smiley:

btw just a tip, i find the custom cursor a bit over complicated, while showing the system mous is as simple as


rasterizer.showMouse(1)

add a sensor, connect it to a python controller, and the script for the controller is the one you just made. simple eh?