;Create the title image(AddImage(ImageFilename,x,y,Transparent,BaseColor,Angle))
AddImage("Data\Images\Menu\Title.png",0,0,0,c_white,0)
;Add 3 menu buttons. AddButton(Text,x,y,Action(String) -1 if none,HoverSound -1 if none,ClickSound -1 if none)
AddButton("New Game",32,330,"Exec('Data\level1.cgf')",-1,-1)
AddButton("Load Game",32,360,-1,-1,-1)
AddButton("Game Options",32,390,-1,-1,-1)
AddButton("Quit Game",32,420,"EndGame(1,'Are you sure you wish to leave?')",-1,-1)
That creates a simple main menu. As long as the command exists as a script in your exe, it will execute that command. Awesome right?I havnt done much commenting but if you know your way around gml, you will be sweet.
I look forward to your comments and I would like to see what you come up with.
DOWNLOAD: http://www.mediafire...lxl3b1a6f7uex8w
Please dont ignore this... I put alot of work into it.
Oh and if you get any errors, just disable error messages in the Global Game Options.











