Game Maker Programming/Global GUI

From Wikibooks, open books for an open world
< Game Maker Programming
Jump to: navigation, search

File Menu[edit]

Edit, Run and Add Menus[edit]

Programming-game maker-main GUI-Add.PNG

  1. New File - Opens a new game maker file
  2. Open File - Opens a saved game maker file
  3. Save - Saves the current game maker file
  4. Run Game(F5) - Compiles and Runs the current game maker file
  5. Run Game in debuging mode - Compiles and Runs the current game maker file with a debugging screen
  6. Add a Sprite
  7. Add a Sound
  8. Add a Background
  9. Add a Path
  10. Add a Script
  11. Add a Font
  12. Add a Time Line
  13. Add a Object
  14. Add a Room
  15. Change Game Information - Displays the game information (Information displayed when a user presses F1 in the game)
  16. Change Global Game Settings - Displays a variety of Game Settings which take effect globaly
  17. Unlock Game Maker - Provides Information on how to purchase Game Maker
  18. Help - Provides extensive help on Game Maker functions, variables and statements.

run game Possibly the biggest advantage game maker has over program based games, is that from almost any stage of completion, the game can be run to see what its like. I suppose you are wondering what debug mode is. Well, it is unnecessary until you can program in GML (game maker language) so don't worry about it.

add a sprite Well a sprite (who picked the name sprite) is a picture. The majority of things in any 2d game have a sprite. A sprite is basically an image, or a collection of images making a short animation. Collectively your list of sprites in-game are just all the images your game puts on top of each other to create a game.

add a sound As the name says, this adds a sound. Although, sounds are not really worth adding unless you are slightly more advanced. Also in the unregistered version I don't think you can get a sound from a file. Meaning that it has to be stored in the .exe file (in the game).

If you don't know the mechanics of an exe file, think of an exe file as a machine. Normally in games the exe file knows where to find all the resources (i.e. pictures, sounds, menu's etc.) and combines them all into a game, which it then spits out onto your screen (look in you program files, for most programs there is an exe file and a dozen or so folders containing files that the program reads, uses, etc..). Storing everything inside the .exe file slows down the running speed of the .exe itself, also longer load times etc., so eventually (when you get better with game maker) it is better to have the files external (not inside the .exe file).

add a background This is very similar to sprites. Backgrounds are used like the background of your computer's desktop. Everything goes on top of the background.

add an object Now if you remember before, I told you that a sprite is just a large set of images. An object is what you see in-game, or may not see as the case may be. It defines the rules which the sprites follow. Say a sprite were to go left when the left arrow was pressed. The object tells the sprite to go left, if the left key is pressed. You can do a lot of functions, under a lot of events (when something happens, i.e. keypress). events include-

on left mouse click when keyboard button is press on collision with another object every step (every 0.06 seconds)

and the functions include things like move left change the sprite play a sound create another object

Each event can govern many functions. Also, rather helpfully they are well worded- on collision with bullet create instance of object_explosion & play the sound explosion.midi

Resource Navigator[edit]

Programming-game maker-Resource navigator.png
Sprites
Contains a list of images used in the program.
Sounds
Contains a list of sound files
Backgrounds
Contains a listing of background images.
Paths
Contains a list of movement paths for characters in the game.
Scripts
Contains a list of programming scripts.
Fonts
Contains a list of in-game fonts.
Time Lines
Contains a list of time lines.
Objects
Contains a list of object types that are used within the game.
Rooms
Contains a list of rooms used within the game.

Note that some of these resources are only shown if Game Maker is set to advanced mode.