GameMaker Collection A

101 GameMaker Projects To Learn From


GameMaker Examples on This Page Now Include Code Comments


 1 Keep Instance In Room 

This keeps the instance within the room’s boundary.

1 Keep Instance In Room Zip
Archive – 810.0 KB

 2 Line Of Sight

This example looks for a line of sight from enemy to player, without a crate between them.

2 Line Of Sight Zip
Archive – 925.2 KB

 3 Simple Level Complete Save System

To load and save whether player has completed a level.

3 Simple Level Complete Save System Zip
Archive – 799.7 KB

 4 Seeking Missile

This creates a missile that seeks out an enemy instance.

4 Seeking Missile Zip
Archive – 814.9 KB

 5 Draw Health As Bars

Draws Health As Separate Sections.

5 Draw Health As Bars Zip
Archive – 768.8 KB

 6 Ellipse Movement

This code will move in instance in an ellipse.

6 Elipse Movement Zip
Archive – 763.1 KB

 7 Draw Contents Of 2D Array

A simple method to draw data from an array.

7 Draw Contents Of Array Zip
Archive – 755.8 KB

 8 Adaptable Engine Noise

This code changes te pitch of an engine noise based on its speed.

8 Adaptable Engine Noise Zip
Archive – 1,022.3 KB

 9 Drag-able Objects

Sometimes you may wish the player to be able to click and drag an instance around the room. Here is a simple solution.

9 Dragable Objects Zip
Archive – 774.1 KB

 10 Mini Map

This code draws a mini-map,

10 Mini Map Zip
Archive – 789.8 KB

 11 Trail Effect

A simple script for drawing an image trail.

11 Trail Effect Zip
Archive – 773.9 KB

 12 Change Image On Mouse Interaction

This example uses a sprite with 3 different subimages,0=no mouse, 1=mouse over and 2=mouse pressed.

12 Change Image On Mouse Interaction Zip
Archive – 810.3 KB

 13 Mouse Pointer Point Direction

Draws a sprite as pointer, pointing direction of target and slowly moves.

13 Mouse Pointer Point Direction Zip
Archive – 814.1 KB

 14 Power Up

A simple solution for managing a power up.

14 Power Up Zip
Archive – 803.2 KB

 15 Push-able Block

A simple pushing system.

15 Pushanble Block Zip
Archive – 822.8 KB

 16 Radar

A great adaptable radar system.

16 Radar Zip
Archive – 822.8 KB

 17 Random Word From A Text File

This example shows how to select a random word from a text file.

17 Random Word From Text File Zip
Archive – 769.2 KB

 18 Real Time Clock Example

Draws the players local time according to the system clock.

18 Real Time Clock Zip
Archive – 756.5 KB

 19 Score With Leading Zeros

A simple method of drawing a score with leading 0's

19 Score With Leading Zeros Zip
Archive – 803.8 KB

 20 Fading Moving Text

Creates moving fading text, great providing info to the player.

20 Fading Moving Test Zip
Archive – 806.4 KB

 21 Cool Down System

A useful idea that limits how often a player can shoot / attack / or perform other actions.

21 Cool Down System Zip
Archive – 819.1 KB

 22 Sliding Bar

A useful bit of code that allows a user to select a value.

22 Sliding Bar Zip
Archive – 849.6 KB

 23 Slowly Move

This slowly moves to a position, in this example to the mouse’s position.

23 Slowly Move Zip
Archive – 854.2 KB

 24 Rising Smoke Effect

Create a rising and fading smoke effect. Requires a sprite of a smoke.

24 Rising Smoke Effect Zip
Archive – 964.9 KB

 25 Typewriter Text Effect

Draws text, one character at a time.

25 Typewriter Effect Zip
Archive – 811.1 KB

 26 Level Unlock System

The currently available levels is the value global.levels, ie a value of 2 would mean levels 1 and 2 unlocked.

26 Level Unlock System Zip
Archive – 830.6 KB

 27 Weapon Management

An example for storing info for multiple weapons.

27 Weapon System Zip
Archive – 1.6 MB

 28 Top Down Character Control

4 direction movement and sprite control.

28 Top Down Character Control Zip
Archive – 864.1 KB

 29 Blood Effect Using Particles

Creates a blood effect using particles.

30 Draw Text Info With Background Zip
Archive – 799.3 KB

 30 Draw Text Info With Background

A Simple script that can be used to draw info text for the player.

30 Draw Text Info With Background Zip
Archive – 799.3 KB

 31 Speed Boost

A simple system to allow a temporary increase of an instance’s max speed.

31 Speed Boost Zip
Archive – 814.8 KB

 32 Projectile Curved Path

Makes a projectile follow a curved path to target.

32 Proectile Curved Path Zip
Archive – 809.1 KB

 33 Draw Power Bar With Image Background

A useful approach that draws power, health, boost etc,using an image as the background.

33 Draw Power Bar With Image Background Zip
Archive – 805.2 KB

 34 Create Muzzle Flash

This example shows how to create a muzzle flash for a rotating weapon.

34 Create Muzzle Flash Zip
Archive – 1.1 MB

 35 Cloud Effect Using Filters & Effects

This example make use of the powerful filters and effects layer.

35 Cloud Effect Using Filters And Effects Zip
Archive – 755.0 KB

 36 Missile Smoke Trail

A simple method using built in effects system to create smoke trail effect.

36 Missile Smoke Trail Zip
Archive – 808.3 KB

 37 Selectable Stats

This allows the player to choose a player object with various stats.

37 Selectable Stats Zip
Archive – 908.2 KB

 38 Add Playing Cards & Shuffle

A simple method to shuffle a deck of playing cards.

38 Add Playing Cards And Shuffle Zip
Archive – 9.1 MB

 39 Enemy Track Player’s Movement

Sometimes you may want an enemy to match the player’s movement. This example moves the enemy’s y position towards the player.

39 Enemy Track Players Movement Zip
Archive – 816.1 KB

 40 Tool Tip Pop Up

A useful bit of code that provides extra info to the player on mouse over.

40 Tool Tip Pop Up Zip
Archive – 811.9 KB

 41 Pop Up Wobbly Text

A simple text effect, great for using when a player collects a coin, showing the score the player gets.

41 Pop Up Wobbly Text Zip
Archive – 848.0 KB

 42 Grow and Shrink Message Control

This example grows and shrinks an image.

42 Grow And Shrink Message Control Zip
Archive – 938.6 KB

 43 Smoothly Move To Mouse Position

This moves smoothly to a position, in this example the mouse’s position.

43 Smoothly Move To Mouse Position Zip
Archive – 808.3 KB

 44 Bounce Off Room Border

A simple effect, great for sprucing up a menu or pause screen.

44 Bounce Off Room Border Zip
Archive – 761.0 KB

 45 Pause Music When Sound Effect Plays

This little method pauses the background music whilst an audio effect plays, great for adding atmosphere to your games.

45 Pause Music When Sound Effect Plays Zip
Archive – 29.5 MB

 46 Glitch Effect Text

Creates a shaking text effect.

46 Glitch Text Effect Zip
Archive – 809.2 KB

 47 Wobbly Text

This makes a cool text floating wobble effect.

47 Wobbly Text Zip
Archive – 809.4 KB

 48 Choose A Random Instance

This code chooses a random enemy instance.

48 Choose A Random Instance Zip
Archive – 822.6 KB

 49 Draw Mini Healthbar For Enemy

This is a simple method to draw a mini healthbar above an enemy instance.

49 Draw Mini Healthbar For Enemy Zip
Archive – 817.5 KB

 50 Fade In And Out

This fades a sprite in and out.

50 Fade In And Out Zip
Archive – 830.6 KB


 51 Rotating Text

A Simple method for rotating text.

51 Rotating Text Zip
Archive – 809.4 KB

 52 Flashing Text

You can use this method to make text flash and glow, ideal for getting the attention of the player.

Note: Contains Flashing Images

52 Flashing Text Zip
Archive – 809.1 KB

 53 Play Sound At Selected Volume

Sometimes you may wish to play a sound at a lower or higher volume.

53 Play Sound At Selected Volume Zip
Archive – 2.9 MB

 54 Spawn Powerups Control System

An example system for providing the player with a bonus. Works on a percentage system, each with a chance of happening.

54 Spawn Power Up Control System Zip
Archive – 810.1 KB

 55 Move Crosshair To Mouse Position

At time you want a player crosshair to move towards the mouse’s position.

55 Move Crosshair To Mouse Position Zip
Archive – 771.1 KB

 56 Checkpoint System

Sometimes you want the player to save it’s position at a level checkpoint.

56 Checkpoint System Zip
Archive – 837.5 KB

 57 Check If Instance Is In View

Sometimes you may want to check if an instance is in view, for example only allowing an enemy to shoot it’s projectile when within the current view.

57 Check If Instance In View Zip
Archive – 828.7 KB

 58 Jump Through Platforms

Sometimes you may want to allow a player to be able to jump through a platform.

58 Jump Through Platforms Zip
Archive – 837.6 KB

 59 Random Level Music

Plays random music.

Archive - 107 MB

Download


 60 Exploding Effect

If your sprite assets have several parts available here is a simple effect.

60 Exploding Effect Zip
Archive – 958.4 KB

 61 Draw Text With Border

Here is a simple script that draws text with a border. Great for sprucing up your GUI text.

61 Draw Text With Border Zip
Archive – 848.9 KB

 62 Move Coin To Score Text

This creates a coin moving effect that moves it towards the HUD text for displaying score.

62 Move Coin To Score Text Zip
Archive – 1.1 MB

 63 Tire Track Effects

Draws tyre tracks that fade away. Ideal for top down car or tank games.

63 Tyre Track Effect Zip
Archive – 762.5 KB

 64 Fireworks Display

A cool graphical effect, ideal for when a player completes a level.

64 Firework Display Zip
Archive – 755.5 KB

 65 Spawn Bullets From Double Weapon

This allows for spawning bullets in a double-barrelled weapon.

65 Spawn Bullets From Double Weapon Zip
Archive – 895.6 KB

 66 Sprite Drop Shadow

A simple method for creating a drop shadow effect.

66 Sprite Drop Shadow Zip
Archive – 766.9 KB

 67 Simple Top Down Collision

This code works well in top down games, for example a racing game.

67 Simple Top Down Collision Zip
Archive – 823.6 KB

 68 Spawn Instance With Random Subimage

This example spawns an instance with a random subimage and vertical speed.

68 Spawn Instance With Random Subimage Zip
Archive – 956.5 KB

 69 Sine Wave Based Movement

A sine wave can be used for a lot of effects, for example smoothly moving an instance up and down, as in this example.

69 Sine Wave Based Movement Zip
Archive – 767.0 KB

 70 Draw Player’s Speed On Dial

A simple way to visually show the player’s speed.

70 Draw Players Speed On Dial Zip
Archive – 975.2 KB

 71 Spawn Trees Border

A simple method of spawning a border of trees, suitable for a top-down vertical scrolling shooter.

71 Spawn Trees Border Zip
Archive – 771.7 KB

 72 One Button Controlled Movement

Allows you to add some accessibility to your games, by allow the player to move a crosshair around the room with a single button.

72 One Button Controlled Movement Zip
Archive – 782.5 KB

 73 Plane Movement

A flexible movement system for a player plane in a side-scrolling shooter.

73 Plane Movement Zip
Archive – 817.7 KB

 74 Player Power Up Creator

Sometimes you may wish for your player to work hard to earn a powerup. This example requires the player mash the mouse buttons to unlock an upgrade.

74 Player Power Up Creator Zip
Archive – 803.2 KB

 75 Coin Drop Bonus Effect

Creates a cool looking graphical effect.

75 Coin Drop Bonus Effect Zip
Archive – 808.4 KB

 76 Endless Levels

By using a static screen without views you can create an endless level by spawning instances off screen and for example moving them down.

76 Endless Levels Zip
Archive – 2.3 MB

 77 Mini Healthbar With Segments

Draws a healthbar with segments.

77 Mini Healthbars With Segments Zip
Archive – 821.7 KB

 78 Outline Shader

Creates a white border around an instance.

78 Outline Shader Zip
Archive – 1.2 MB

 79 Move Crosshair To Target

This automatically selects a target and moves the crosshair to the target.

79 Move Crosshair To Target Zip
Archive – 818.5 KB

 80 Spawn Items With Gap

A method to place multiple instances with a gap inbetween.

80 Spawn Items With Gap Zip
Archive – 1.4 MB

 81 Add Scores To A List

There may be times when you want to keep track of player score, for example in a darts game.

81 Add Scores To List Zip
Archive – 803.2 KB

 82 Cloud Effect

Create a cloud scrolling effect, great for above and below various layers in your game.

82 Cloud Effect Zip
Archive – 940.7 KB

 83 Ball Bouncing Off Instances

A Simple method to make a ball bounce off of walls.

83 Ball Bouncing Off Instances Zip
Archive – 771.8 KB

84 Keeping A Value In A Range

There will be time when you wish to keep a value within a given range.

84 Keeping Vakue In Range Zip
Archive – 813.4 KB

 85 Film Style Scrolling Credits

Create scrolling text in a film style. Ideal for showing credits on game complete.

85 Film Style Scrolling Credits Zip
Archive – 862.2 KB

 86 Rotate Room View

This method provides a great method for giving additional visual feedback to the player. Idea for a driving or flying game.

86 Rotate Room View Zip
Archive – 957.9 KB

 87 Toggle Full Screen

There may be times when you want to allow the player to choice of full screen or windowed.

87 Toggle Fullscreen Zip
Archive – 930.4 KB

 88 Progress Bar

Sometimes it’s nice to show the player their level progress.

88 Progress Bar Zip
Archive – 993.6 KB

 89 Flash Player To Show Damage

This example shows one method of visually showing a player that they have taken damage. This changes the player’s character to red.

Warning: Contains Flashing Images

89 Flash Player To Show Damage Zip
Archive – 828.8 KB

 90 Fade Between Two Images

This fades in and out two subimages. Great for making appealing looking text without the overhead of having to use multiple images.

90 Fade Between Two Images Zip
Archive – 958.0 KB

 91 Draw A Path As Circles

A useful method of drawing a path as circles. Ideal for giving hints to the player.

91 Draw Path As Circles Zip
Archive – 755.9 KB

 92 Simple Top Down Movement Control

A simple top down movement control that uses a single mouse button. The good thing is that this leaves the right mouse button free for attacking.

92 Simple Top Down Movement Zip
Archive – 2.1 MB

 93 Laser To Target

This draws a laser from the instance to a target,which in this example is the mouse’s x position.

93 Laser To Target Zip
Archive – 925.4 KB

 94 Bubble Explosion Effect

Here’s a simple effect that makes a load of bubbles great for an underwater themed game (or use something other than bubbles to match your theme).

94 Bubble Explosion Effect Zip
Archive – 1.3 MB

 95 Add Instances To A Grid & Move To A Target

Below is a simple method of making a grid with areas that are not allowed. It then makes a path to a random instance.

95 Add Instances To Grid And Move To Target Zip
Archive – 768.5 KB

 96 Image Scale, Fade and Rotate Effect

An effect that can be used for a variety reasons.

96 Image Scale Rotate And Fade Zip
Archive – 955.3 KB

97 Player Streak

Keep tracks of a player’s streak, for example the number of enemies killed without missing.

97 Player Streak Zip
Archive – 799.5 KB

 98 Numbers As Text

This script will change digits to text, for example 16783 to sixteen thousand seven hundred and eighty three. Works upto 999999

98 Numbers As Text Zip
Archive – 800.3 KB

 99 Draw Lives As Images

This draws the players lives as images.

99 Draw Lives As Images Zip
Archive – 809.1 KB

 100 Coin Explosion Effect

The following is a cool explosion effect, great when collecting coins.

100 Coin Explosion Effect Zip
Archive – 807.1 KB

 101 Text With Gradient

This script draws gradient text with a border. Great for game titles, game-over screen etc..

101 Text With Gradient Zip
Archive – 798.1 KB


Current GameMaker Contents:

Collection A: 101 Mini Projects

Collection B: More 101 Mini Projects

Collection C: Even More 101 Mini Projects

Collection D: Lots More 101 Mini Projects

Collection E: Another 101 Mini Projects

Games: A Collection Of Mini Game Projects

Also Taking Suggestions For Mini Projects and Games - Send Me Your Ideas Here