Game Development Reference
In-Depth Information
Loading a sprite
Loading a sprite in GameMaker can be done in two ways:
1. The first and most common way is to create a new sprite resource by clicking on
the new sprite button , and then clicking on the Load Sprite button. This dis-
plays the default file browser, allowing you to find your sprite image file and open
it as a sprite in GameMaker.
2. The second way to load a sprite is by using your default file browser to locate the
image file and then drag and drop it onto the GameMaker user interface. This will
show a dialog asking what sort of resource you want it to be.
Clicking on Sprite will create a new sprite resource with the image file loaded as the sprite.
Clicking on Background will create a new background resource with the image file loaded
as the background. Clicking on Included File will add the image as an included file to the
project.
An included file is a file that will be exported and packaged with your final project. This al-
lows you to attach things such as text files, dynamic link libraries, or images to be loaded
externally to the final project and have it all packaged together when the game is exported.
Search WWH ::




Custom Search