How to make buttons and add the menu

From Platinum Arts Sandbox Free 3D Game Maker
Jump to: navigation, search

This tutorial has been made from shop script. Editting the menu and making button,we will learn how to make both together.


First of all we are going to edit the menu and make a button on the new part in the menu.


The menu is the GUI you get when you press esc,it contains editmode and load map and things like that.While in editmode open the cfg wich is located in edit GUI in menu then type what I say to you to type.


First of all GUI is a short for graphical use interface wich is pronounced gooey,it is the way you command a program with graphics and not with codes like DOS and other programming languages,I know html,javascript,css and python but I prefer a platinum arts because it saves a lot and billion times easier,in my *free time I might program.Now write this code in the cfg and I will explain it:

newgui GameQuest[ guibutton "Back" "cleargui 1" guibar //Write game quests here ] newgui main[ guilist[ guilist[ guibutton "GameQuest" "showgui GameQuest" ] ] guibar @main ] Note: This is not the best way to display quests,making chars talk is another,so this is just an example. The first gui we create is called GameQuest.We make a button called Back and a command called cleargui 1 beside it,this command will close this gui and open the menu again when back button is pressed,so that is all about buttons.Then a bar(line) is created and you have a place to write your quests using guitext ( format " ").Then we close the gui,we need to call it with an existing gui already,so we create a gui called main,make two lists then make a button that calls the GameQuest gui,we close the two lists then put the main gui in the main menu using @main.