EXAMPLE
Written by BBaller
Posted on 11/Feb/2006
Version Game Maker 6.1
Mouse Based MenuPosted on 11/Feb/2006
Version Game Maker 6.1
This example shows how to use objects to create clickable menu buttons. Each object uses a unique sprite with 2 sub-images. The first sub-image is the regular button graphic. The second sub-image is displayed when the player hovers over the button. When clicked, each button goes to a different room that has a back button in it to return to the main menu. In order to avoid repetition of code, there is a parent object that contains all the code. All other button objects use obj_menu_start_parent as a parent.