08.11.2012 Views

Designing Games with Game Maker - YoYo Games

Designing Games with Game Maker - YoYo Games

Designing Games with Game Maker - YoYo Games

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Finally you can change the unique game id. This id is used for storing the highscore list and<br />

save game files. If you release a new version of your game and don't want to take over the<br />

old highscore list, you should change this number.<br />

Constants<br />

Under this tab you can define global constants that can be used in all scripts and pieces of<br />

code, or as values for actions. Each constant has a name and a value. Names should follow<br />

the same rules as variables, that is, they must start <strong>with</strong> a letter or underscore symbol and<br />

further consist of letters, digits or underscore symbols. You are though strongly recommended<br />

to make all your constants easily distinguishable. A usual convention is to use only capital<br />

letters and underscores.<br />

A value of a constant should be a constant expression. That is, it is either a constant number<br />

or a string (<strong>with</strong> quotes around it) or it is an expression. The expression is evaluated before<br />

anything else happens in the game. So it for example cannot reference the current room,<br />

instances, or scripts. But it can contain the built-in constants and the names of resources.<br />

You can append a constant at the end of the list using the button Append and delete it using<br />

Delete. You can also insert a constant above the current selected constant. You can change a<br />

constant name or value by clicking on it. There are also buttons to clear all constants, to move<br />

them up or down in the list, and to sort them by name.<br />

Including Files in Stand-alone <strong><strong>Game</strong>s</strong><br />

This functionality is only available in the Pro Edition of <strong>Game</strong> <strong>Maker</strong>.<br />

As has been indicated before, you can create stand-alone versions of your game. Sometimes<br />

your game will use additional files. For example you might want to include video files or text<br />

files that are used in the game. In some cases you want to add DLLs or images and sounds<br />

that are loaded during the running of the game. You can provide these together <strong>with</strong> the<br />

stand-alone executable but it is sometimes easier to include them in the file. In this way only<br />

one file needs to be distributed. Included files will default be exported when the game starts.<br />

You can indicate the files you want to include in the executable in this tab of the game<br />

settings. At the top of the form is a list of files to include. Use Add to add a new file to the list,

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!