Files
QtGameMaker/help/files/109_00_backgrounds.html
T

65 lines
2.4 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head>
<title>Backgrounds</title>
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body background="images/back.gif">
<!--START-->
<h1>Backgrounds</h1>
The third type of basic resource is backgrounds. Backgrounds are usually large images
that are used as backgrounds (or foregrounds) for the rooms in which the game takes place.
Often background images are made in such a way that they can tile an area without visual
cracks. In this way you can fill the background with some pattern. A number of such
useful backgrounds are bundled with <i>Game Maker</i>. Others can be found on the
<i>Game Maker</i> website. Many more can be found at other places on the web.
<p>
To create a background resource in your game, use the item <b>Create Background</b>
in the <b>Resources</b> menu or use the corresponding button on the toolbar.
The following form will pop up.
<p>
<img src="images/form_background.jpg">
<p>
At the top-left you can indicate the name of the background.
You are strongly recommended to give every background (and other resource)
a descriptive name.
<p>
Press the button <b>Load Background</b> to load a background image. A file
selector is shown in which you can select the background you want. At the
right of the dialog you can indicate whether you want to make the
background opaque (that is, remove any transparent parts), whether
to remove the background, making it transparent (default not), and whether to smooth the
edges of the background, which can improve its appearance when it is partially transparent.
When you are happy with the result press <b>Open</b> to load the background.
<i>Game Maker</i> supports many image formats. Background images cannot
be animated!
<p>
You can change the background or create a new one using the button
<b>Edit Background</b>. This will open an extensive image editor. For
information on how to use the image editor see the section on
<a href="202_03_individual.html">Editing images</a>.
<p>
Be careful with large backgrounds. Some old graphics cards cannot handle images that are larger
than the screen. So preferably keep your background images smaller than 1024x1024. </p>
<!--END-->
</body>
</html>
<!-- KEYWORDS
adding backgrounds
creating resources
backgrounds
background images
transparent backgrounds
editing backgrounds
-->