GameMaker Example Projects A
101 GameMaker Projects To Learn From
GameMaker Examples on This Page Now Include Code Comments
2 Line Of Sight
This example looks for a line of sight from enemy to player, without a crate between them.

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.

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.

13 Mouse Pointer Point Direction
Draws a sprite as pointer, pointing direction of target and slowly moves.

Use Coupon Code SPRING For 40% Off
21 Cool Down System
A useful idea that limits how often a player can shoot / attack / or perform other actions.

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.

30 Draw Text Info With Background
A Simple script that can be used to draw info text for the player.
33 Draw Power Bar With Image Background
A useful approach that draws power, health, boost etc,using an image as the background.

35 Cloud Effect Using Filters & Effects
This example make use of the powerful filters and effects layer.
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.

Use Coupon Code SPRING For 40% Off
41 Pop Up Wobbly Text
A simple text effect, great for using when a player collects a coin, showing the score the player gets.

43 Smoothly Move To Mouse Position
This moves smoothly to a position, in this example the mouse’s position.

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.
49 Draw Mini Healthbar For Enemy
This is a simple method to draw a mini healthbar above an enemy instance.

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

53 Play Sound At Selected Volume
Sometimes you may wish to play a sound at a lower or higher volume.

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.

55 Move Crosshair To Mouse Position
At time you want a player crosshair to move towards the mouse’s position.
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.

58 Jump Through Platforms
Sometimes you may want to allow a player to be able to jump through a platform.

Use Coupon Code SPRING For 40% Off
61 Draw Text With Border
Here is a simple script that draws text with a border. Great for sprucing up your GUI text.

62 Move Coin To Score Text
This creates a coin moving effect that moves it towards the HUD text for displaying score.

68 Spawn Instance With Random Subimage
This example spawns an instance with a random subimage and vertical speed.

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.

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

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.

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.

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.

79 Move Crosshair To Target
This automatically selects a target and moves the crosshair to the target.

Use Coupon Code SPRING For 40% Off
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.

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

84 Keeping A Value In A Range
There will be time when you wish to keep a value within a given range.

85 Film Style Scrolling Credits
Create scrolling text in a film style. Ideal for showing credits on game complete.
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.

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

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

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.
91 Draw A Path As Circles
A useful method of drawing a path as circles. Ideal for giving hints to the player.

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.

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

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).

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.
97 Player Streak
Keep tracks of a player’s streak, for example the number of enemies killed without missing.

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

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

Use Coupon Code SPRING For 40% Off
Level Up Your Game Development Skills with GameMaker Examples A
Game development is an exciting journey, but even the best developers sometimes hit roadblocks. That’s where GameMaker Examples A comes in—a carefully curated collection of ready-to-use GML code snippets designed to help developers of all skill levels turn their ideas into stunning reality.
What Makes GameMaker Examples A Essential?
GameMaker Examples A is a hub for anyone looking to refine their coding skills in GameMaker Language (GML), whether you're tackling game physics, AI movement, or particle effects. Here’s what makes it a must-visit resource:
-
Beginner-Friendly: Perfect for newcomers to GML, these examples include intuitive code that’s easy to understand and modify.
-
Advanced Solutions: For seasoned developers, the site offers innovative scripts that solve complex game development challenges.
-
Save Time and Boost Creativity: You’ll find pre-tested and optimized GML code, so you can focus on designing an immersive game experience.
Dive into the World of GML
For those unfamiliar, GameMaker Language (GML) is a versatile tool for creating everything from simple arcade games to sprawling RPGs. It provides developers with control over their game's behavior, from gameplay mechanics to custom visual effects. At GameMaker Examples A, we showcase the potential of GML by offering clear examples that inspire creativity and speed up development.
Popular Code Snippets from GameMaker Examples A
Here are some standout examples from our growing library:
-
Character Movement Scripts: Whether you’re designing a platformer or a top-down shooter, these scripts provide smooth and precise controls.
-
Projectile Systems: Add powerful combat mechanics with examples that let your characters shoot projectiles and track their impact.
-
Dynamic Lighting and Shadows: Enhance your game’s atmosphere with visually stunning and efficient lighting code.
-
Interactive Menus: From pause screens to customizable main menus, these scripts make navigating your game a breeze.
Why Choose GameMaker Examples A?
At GameMaker Examples A, we believe in empowering developers. That’s why our examples come with detailed explanations, ensuring you understand not just the how but the why behind each piece of code. By using these examples, you can:
-
Improve Your Skills: Learn GML best practices and coding techniques.
-
Discover New Ideas: Find inspiration to experiment with game mechanics you hadn’t considered before.
-
Streamline Your Workflow: Spend less time debugging and more time creating.
Whether you're building your first game or working on your next indie hit, GameMaker Examples A is your go-to resource for unlocking the full potential of GameMaker Language. Explore now and take your game to new heights!
Current 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
New Page:
Games & Interesting Ideas: Updated Weekly
Also Taking Suggestions For Mini Projects and Games - Send Me Your Ideas Here