Examples & Tutorials
I’ve learned a lot about Game Maker over the years, and I’ve always appreciate all the help I’ve gotten from members of the GMC. Heck, I wouldn’t have been able to complete any of my games without it! So in order to give back, and maybe help take the bite out of learning certain aspects of Game Maker programming, I’ve created this page to house the various examples, scripts, and tutorials I’ve put together. Hopefully some of this is helpful, and please feel free to contact me with requests for examples, questions, or comments. All examples are free to download and use - please give credit when you use them to create something for yourself. Oh, and I’ve organized the list alphabetically - for your viewing pleasure!
Examples
These files were created specifically as examples of one or two functions, and though they are all able to be “compiled” and run in Game Maker, they are best used to study or just to play around with while you are learning. If you’re after more expansive projects for which I have released the source code, check out the next section.
 |
3D Animated Water
A simple example of creating infinitely looping tiled water using GM’s D3D. Use W, A, S, & D keys to move the camera around the scene. |
|
|
 |
3D Camera
An example of how to set up a camera with smooth, goal-oriented movement. Use arrow keys to move the ball and numerical pad arrows to move the camera. |
|
|
 |
3D Cel Shading
This is a quick example of cel shading using GM’s D3D. Use W, A, S, & D keys to move the camera around the scene. |
|
|
 |
3D Day / Night Cycle
A basic day / night cycle using light, fog, and sounds. Use the mouse to move the camera around the scene. |
|
|
 |
3D Grass
An example of one possible way to set up grass in a 3D scene. Use the arrow keys to move the camera around the scene. |
|
|
 |
3D Model Import / UV Map
This is an extended example of how to import models (using Mosaic Light by Zoltan Percsich) and set up UV mapping. Includes an HTML tutorial file and images. Use the arrow keys to move the camera around the scene, and the space bar to load. |
|
|
 |
3D Night Sky
This is a simple example of how to use pointlists to create a night sky filled with stars. Use the W, A, S, and D keys to move the camera around the scene, mouse to look around, F4 to toggle fullscreen, and ESC to exit. |
|
|
 |
3D Rain
One possible way to create a torrent of heavy rain using multiple rain objects and sine waves for animation. Inspired by Gears of War! Use the W, A, S, and D keys to move the camera around the scene, mouse to look around, F4 to toggle fullscreen, and ESC to exit. |
|
|
 |
3D Texture Animated Water
A simple example of creating some slick, animated water using GM’s D3D and an animated texture from Photoshop. The camera will move around the scene automatically. |
|
|
Abandoned / example open source projects
Below are an assortment of projects that I started, abandoned, and later released the source, or which I created as demo applications that go a little beyond a simple example. These files are more complex than those above, but were not designed primarily as examples, and therefore are not commented or documented well.
 |
Mandelbrot Fractal Explorer
A small program that can render the Mandelbrot fractal and with which you can use the mouse to explore and render it. Click and drag the left button to move around the view, use the mouse wheel to zoom in and out, and press the space bar to render the final image to “c:\fractal.bmp.” The code can be modified to make the final rendering more precise. |
|
|
 |
3D FPS Editable
An editable example of a simple FPS game. Collisions are not finished, but work. For learning only, please! |
|
|