GameMaker Studio Examples

$ 4.00


Over the past several years I’ve created lots of code that I reuse a lot in other projects. This is a collection of 200 GMZ (can be imported into GMS1 & GMS2).

Instant download as soon as payment is made.

Download Today For Just $4

Section 1 – Basic Examples – Variables

A) A Program That Takes In Name, Age And Date Of Birth And Displays It On The Screen.
B) A Program That Takes In Five Numbers And Calculates The Average.

Section 1 – Advanced Example – Variables
C) A Program Where You Enter The Date And The Program Displays Correct Tag, Like 1st, Or 23rd.

Section 2 – Basic Examples – Conditionals
A) A Password System Where The User Has To Enter A Correct Password To Continue.
B) Displays An Object At A Random Position On The Screen For One Second. Player Then Clicks Where The Object Appeared. Points Depending On How Close The Player Clicked.

Section 2 – Advanced Examples – Conditionals
C) A Simple Text Input System Using Key Presses. Allows User To Enter Their Name. Then Stores As Global.Name When Enter Is Pressed.
D) A Game Where The Player Selects A Number At Random From 1 To 100. Player Enters A Value (For Example 25) And The Game Will Tell You If You Are Too High, Too Low Or Correct.

Section 3- Basic Examples – Drawing

A) Draws A Grid Of Black And White Squares, Suitable For Playing Chess Or Draughts On.

B) Creates A Floor Plan Of A Room, Includes Furniture, Windows And Doors (Uses Different Colour For Each).

Section 3 – Advanced Example – Drawing
C) Draws A Picture Of The Mona Lisa Using Basic Drawing – Alternative:

Section 4 – Basic Examples – Drawing Continued
A) Makes A Program That Draws A Rotating Sprite.
B) A Program That Writes A Formatted Message On The Screen. Sets A Font Type, Colour And Alignment.

Section 4 – Advanced Examples – Drawing Continued
C) Makes A Program That Draws Random Positioned Cloud Sprites Moving To The Left At Various Speeds.
D) Gets User To Enter Their Name. Draws This On The Screen, Formatted, Moving From Top Of Screen To The Bottom. Destroys The Object When It Reaches The Bottom.

Section 5 – Basic Examples – Keyboard Input & Simple Movement

A) Makes A Moveable Object That Can Wrap Around The Screen, So If It Goes Off Of The Screen It Appears On The Opposite Side.
B) Creates A Simple Two Player Game, One Player Using WSAD And The Other With Arrow Keys. One Player Must Chase The Other Player Around The Room.

Section 5 – Advanced Example – Keyboard Input & Simple Movement
C) A Maze That The Player Should Navigate.

Section 6 – Basic Examples – Objects & Events
A) Draws The Health A Player As Text In Red Above A Player When Health Is Less Than 20. Sets It Up So P And L Changes The Value Of Health.
B) Makes Some Text Change Colour, At Random, Each Time The Space Bar Is Pressed.

C) Creates An Object That Changes Colour When The Mouse Is Over And When Clicked On The Object. Uses A Different Sub Image For Each Colour.
Section 6 – Advanced Example – Objects & Events
D) Creates A Mini Game That Randomly Displays Three Objects That Move In Random Directions When Created And When Clicked By The Player. If Objects Goes Off Side Of Screen, Wraps Around Screen. Player Clicks Objects To Get Points, Displays Points On Screen.

Section 7 –Basic Examples – Sprites
A) Draws An Animated Character Sprite That Animates When Moving Right.
B) Sets It So The Coin Animates Through Its Cycle 4 Times, Then Jumps To A New Position And Starts The Cycle Again.
C) Makes Simple Top Down Maze Game With A Character That Points In The Direction The Player Is Moving.

Section 7 – Advanced Example – Sprites
D) Draws A Sprite That Changes Perspective (Size) Depending On The Y.

Section 8 –Basic Examples – Health, Lives & Score
A) Draws A Health Bar Across The Whole Of The Top Of The Game Window, Draws Lives Under This As Images. Allows Keys Q And W To Change Health Value, And A And S To Change Lives.
B) Uses GML To Draw Lives As Images, Using An Animated Sprite. Uses GML, Not The Built In Draw Lives Action.

Section 8 –Advanced Examples – Health, Lives & Score
C) Draws A Bar At The Top Of The Screen That Draws The Current Score Mod 1000. For Each 1000 Score Increases The Level By 1. Also Draws Score And Level As Text.
D) Creates 4 Level Buttons That Each Become Clickable For Every 1000 Score Points. Shows They Are Clickable Using Different Sub Images. Also Changes Sub Image When Mouse Over And When Clicked.

Section 9 – Basic Examples – Mouse

A) Creates An Object That Follows Only The Mouse’s X Position.
B) Makes The Mouse Cursor Change When It’s Over An Object.
C) Draws The Mouse’s X And Y Positions In The Bottom Left Of The Screen.

Section 9 – Advanced Examples – Mouse
D) Creates A Sound Board (Lots Of Buttons Each Of Which Plays A Sound When Clicked With The Mouse). Draws Text Over Each Button, Explaining What Sound It Plays.
E) Creates An Object That Can Be Moved Around The Room With The Mouse.

Section 10 – Basic Examples – Alarms
A) Creates A Program That Changes The Drawn Text Every 5 Seconds, Using A List Of 10 Strings.
B) A Program With An Object That Moves With A Speed Of 1.Increases The Speed Of The Object Every 5 Seconds. Also Makes The Object Wrap Around The Screen.
C) Creates A Program That Plays A Random Sound Every 4 Seconds.

Section 10 – Advanced Examples – Alarms
D) A Simple System That Allows The Player To Shoot Bullets At A Maximum Rate Of One Bullet Every Two Seconds.
E) Creates An Enemy AI That Changes Direction Randomly Every 5 Second. Makes The Enemy Object’s Sprite Point In Direction That It Is Travelling. Also Makes The Enemy Object Wrap Around The Screen. Sets The Object To Shoot A Bullet In The Direction It Is Travelling Every 8 Seconds.

Section 11 – Basic Examples – Collisions
A) Makes The Player Change Colour When It Can See One Or More Of Obj_enemy.
B) Creates An Object, Obj_target, And Assigns A Pink Sprite To It. If Player Collides With It, It Plays A Sound And Destroys Itself.
C) Creates A Clickable Object With 4 Sub Images. When The Mouse Button Is Released When Over The Object, It Changes The Sub Image. On The Forth Click Destroys The Object.

Section 11 – Advanced Examples – Collisions
D) Makes The Player Change Direction At Random If The Mouse Gets Within 100 Pixels In Any Direction, But Only Checks This Once Every 5 Seconds. Also Makes The Object Wrap Around The Screen.
E) Has A Room Surrounded With Walls. Creates A Ball That Bounces Around The Room. Has Some Objects In The Room That Require 4 Hits Of The Ball To Be Destroyed, Changing The Sub Image Each Time They’re Hit.

Section 12 – Basic Examples – Rooms
A) Makes A Splash Screen With A Background That Shows For 5 Seconds, Plays A Sound, And Then Goes To A New Room.
B) Creates A Level Select Screen That Has 5 Buttons That Each Go To A Different Room. Makes The Buttons Change Colour When Mouse Is Over Them. Draws The Level As Text In The Middle Of Each Button.

Section 12 – Advanced Example – Rooms
C) Creates 2 Rooms, A B. Visualised As:



Makes The Player Wrap Up And Down In Each Room. Makes It So A Player Object Can Move From One Room To The Next. So If The Player Moves Off The Right Of Room A, The Player Will Appear At The Same Y Location In Room B, But On The Left Of The Room, And, If The Player Moves Off The Right Of Room B, The Player Will Appear At The Same Y Location In Room A, But On The Left Of The Room. Does This For Moving Left Also.

Section 13 –Basic Examples – Backgrounds
A) Makes A Program That Sets Whether Backgrounds Are Visible When Keys 1 To 5 Are Pressed.

B) Makes A Background That Scrolls Left After 5 Seconds.

Section 13 – Advanced Examples – Backgrounds
C) Creates Two Horizontal Views, One Which Follows Obj_player One Which Follows Obj_enemy (Makes Both Objects Moveable Using Key Presses).
D) Creates A Parallax System Using 4 Backgrounds. Has The Backgrounds Move To The Left, With The Top Layer Moving The Fastest. Changes The Y Location Of The Background Proportionate To Player Objects Y Location.

Section 14 – Basic Examples – Sounds & Music
A) Makes A Program That Can Play, Pause And Stop A Song.
B) Plays One Of 4 Sound Effects At Random When A Ball Collides With A Wall.

Section 14 – Advanced Examples – Sounds & Music
C) Creates A Jukebox Program With 5 Songs.
D) Creates A Moveable Player Object, And A Target Object. If The Player Object Is Less Than 200 Pixels From The Target Object, It Plays A Sound Effect. Increases The Sound Volume The Closer The Mouse Gets To It.

Section 15 –Basic Examples – Splash Screens & Menu
A) Creates A Splash Screen And An Object With A Sprite Animation. Sets It To Go To The Next Room 5 Seconds After The Animation Has Ended.
B) Creates A Menu Room With Background Music With A Button To Go To An Instructions Room (With Button To Return To Menu Room), And A Game Room. Changes The Music For Instruction Screen And Playing The Game.

Section 15 – Advanced Example – Splash Screens & Menu
C) Creates An Object That Becomes Unlock Only If User Types In A Password On The Keyboard. Makes The Password “Xbacon”. Displays Visibly Whether The Object Is Locked Or Unlocked.

Section 16 – Basic Examples – Random
A) Plays A Random Sound Every Time The Player Presses The Space Bar.
B) Makes An Object Jump To A Random Position, No Closer Than 50 Pixels Near The Edge Of The Window, When Clicked With The Mouse. Uses A Sprite With Multiple Sub Images. Stops The Animation On The Last Sub Image.
C) Makes An Object Move Randomly Around The Room Without Going Off Of The Edges. Makes It Change Direction Every 5 Seconds. If It Gets Within 10 Pixels Of The Edge Of The Screen, Makes It Change Direction Away From The Edge.

Section 16 – Advanced Example – Random
D) Creates A Lottery Game That Chooses Six Different Numbers Between 1 And 49. Displays Them In Ascending Order, Inside A Circle. If The Number Is Between 1 And 9 Makes The Circle White, 10-19 Blue, 20-29 Green, 30-39 Red, 40-49 Yellow.

Section 17 – Basic Examples – More Movement
A) Uses A Control Object To Create A Star Every 5 Seconds At A Random Position At The Top Of The Screen Which Then Falls Towards The Bottom. Player Gets A Point For Every One Collected. Player Can Only Move Left And Right At The Bottom Of The Screen, Without Being Able To Leave The Window. Uses The Control Object To Draw The Score In The Top Left Of The Window, Setting A Font, Drawing Style And Colour.
B) Makes A Moveable Player Object (Using Arrow Keys) And A Static Enemy Object. Makes The Enemy Shoot At The Player, Getting Faster As The Player Gets Closer. Prevents The Player From Leaving The Window. Ensures The Bullet Gets Destroyed When Leaving The Room, Uses Room_width & Room_height For This.

Section 17 – Advanced Example – More Movement
C) Creates An Enemy That Changes Direction Every 5 Seconds To Move Away From The Player, And Wraps Around The Room If Goes Off Of The Edge. Also Adds The Bullet Function From Example 17 B, But Makes The Firing Speed No More Than Two Seconds Between Shots.

Section 18 – Basic Examples – INI Files
A) Create Two Rooms, Room_splash And Room_game. Creates An Object For Room_splash That Loads Any Data From An INI File To Two Global Variables. If No INI File Is Present, Sets The Starting Location The Value Of Each To 100. Makes This Object Clickable To Go To Room_game. Creates A Moveable Object For Room_game, That Starts In The Position Stored In The INI File. Pressing X Saves The Location To The INI File And Restarts The Game.
B) Creates A Counter That Keeps Track Of How Many Key Presses The Player Makes In Total, And Saves/Loads The Value Of This Counter To Keep Track Of Presses Over Multiple Games. Uses A Splash Screen With An Object To Load From The INI File. Uses A Separate Object For Detecting Space Presses.

Section 18 – Advanced Example – INI Files
C) Creates An Object That Takes In A 5 People’s Names, Ages And Favourite Food. Displays This Data On Screen. When The Game Is Restarted, And An INI File Exists, It Gives The Option To Display The Current INI File Or Enter New Data.

Section 19 – Basic Examples – Effects
A) Allows The User To Change The Weather By Pressing W. Changes Between A Snow And Rain Effect.
B) Creates A Menu Button That Creates Fire Work Effects Of Different Colours In The Middle When Pressed With The Mouse Button.

Section 19 – Advanced Examples – Effects
C) Creates A Line Of Effects, 20 Pixels Apart, That Start At The Top Of The Screen And Fall Down To The Bottom, Then Starts From The Top Again.
D) Creates An Effect That Spreads Out From A Location When The Mouse Is Clicked. Makes The Effect Move Out Every 10 Degrees From The Starting Point, Using Multiple Objects. Destroys Any Object Creating The Effect After 3 Seconds.

Section 20 – Basic Examples – Loops
A) Places An Object In A Room At A Random Position. Creates Another Object That Finds A Random Location Within 100 Pixels Of The First Object. Uses A While Loop For This.
B) Adds 100 Random Numbers Between 1 And 1000 To A Ds_list, Then Sorts Them Into Order, Highest Value First. Displays On Screen In Four Columns Of 25. Uses For Loops For This.

Section 20 – Advanced Examples – Loops
C) Creates 4 Random Points In The Room. Object Visits Each Point In Order. Displays A Message When All Points Reached.
D) Stores The Names Of Students In Your Class In An Appropriate Way. Displays Names In Alphabetical In Order, One At A Time On The Screen For 5 Seconds, With A Gap With No Name For 2 Seconds.

Section 21 – Basic Examples – Arrays
A) Creates A 2D Array With Data Relating To 4 Students In Your Group. Includes Name, Age, Height, Eye Colour And Favourite Food. Displays This Data On Screen.
B) Makes A 1D Array With The Values Of 10 Types Of Food. Displays One At Random Each Time The Space Bar Is Pressed.

Section 21 – Advanced Examples – Arrays
C) Creates And Populates A Two-Dimensional Array With The 12 Times Table. Draws The Contents On The Screen.
D) Creates An Array To Store The Starting Positions In A Game Of Chess, Uses Letters To Represent Each Piece, Ie K For King, Q For Queen, N For Knight, B For Bishop And C For Castle, All Other Squares To Have A Value Of 0. Uses UPPER CASE For Black And Lowercase For White. Represents This Board On The Screen. Uses More Than One Loop To Populate The Array. Draws A Chess Board With The Correct Values In Middle Of Each Square.

Section 22 – Basic Examples – ds_lists
A) Creates An Inventory System For 5 Objects. If You Add An Additional Item, It Adds It To The End Of The List, Then Removes The Top Item.
B) Creates A Ds_list With 5 Fruits. Player Enters A Fruit, If It Matches A Value In The Ds_list, Removse It, And Telsl Player They Made A Correct Guess. Player Wins When All 5 Fruits Are Guessed.
C) Creates A List With The Names Of Students In The Class. Sorts Them Ascending And Draw On The Screen.

Section 22 – Advanced Example – ds_lists
D) Adds The Names Of All Playing Cards To A List. Shuffles Them. Creates 4 New Ds_lists To Represent Player’s Hands. Deals And Removes The Top Card From The Main List And Deals A Card To Each Player Until Each Has Five Cards. Draws The Values Of Each Player’s Hand On The Screen. Represents Values And Suits Like: AS, 9H, 2D Etc.

Section 23 – Basic Examples – Paths
A) Creates A Path For An Object, Makes It Move In A Circle.
B) When The Player Left Clicks The Mouse. It Adds The Location As A New Point On The Path. Use Project 23 A As A Basis.

Section 23 – Advanced Examples – Paths
C) Makes An Object Point In The Direction Of Movement When Following A Path. Uses Project 23 B As A Basis.
D) Creates A Random Path Of 10 Points, Saves The Points To An INI File.

Section 24 – Basic Examples – Scripts
A) Create A Script To Do Each Of Following, Display Any Result On Screen Visually, As Required, Remembering To Set Up Any Text Drawing. A) Finds The Average Of 5 Numerical Values And Rounds To The Nearest Whole Number.
B) Works Out If The Player Is Within 200 Pixels Of An Enemy Object, Returns True Or False.
C) Draws Given Text, In Black With A Red Shadow, At Given Position.
D) Creates3 Different Fonts. Creates A Script That Allows You To Quickly Draw Text, Using Font, Alignment, Colour And Position.

Section 24 – Advanced Examples – Scripts
E) Creates A Script That Finds An Average Point Between 2 Objects, And Draws A Star Effect At That Position.
F) Creates A Script That Takes Calculates An Angle Between Two Objects And Draws That Direction As Text As The Angle Were On A Compass Needle, Ie North Or South West. The Direction Is That From The First Object To The Second. North Is Up.

Section 25 – Final Examples
Each of the following build together to create a single example:

A) Creates A Background And Control Object That Makes The Background Change Direction Every 5 Seconds. Makes It Move Up, Down, Left, Right And Diagonally.
B) Creates A Moveable Player Object And An Enemy Object That Moves Towards The Player Every 5 Seconds. Only Enemy Can Wrap Around The Screen.
C) Makes The Enemy Shoot In The Direction Travelling Every Time It Changes Direction, In The Direction It’s Moving. Player Can Also Shoot In Direction It’s Moving, No Quicker Than Once Every 4 Seconds.
D) Creates A Small Health Bar Above Player And Enemy Objects. Sets It So Being Hit By A Bullet Reduces Health (Applies To Enemy And Player).

E) Allows Player To Place A Bomb Anywhere On Screen Using Mouse. Bomb Detonates After 3 Seconds. If Player Or Enemy Are In Range, They Lose Health.
F) Makes It Rain If Player Has More Health, Snow If The Enemy Has More.
G) Creates Visual And Audio Effects If A Bullet Hits Player Or Enemy, Or When Bomb Explodes.

Maths Bar Graph
To accept 5 fieldnames / legends and numerical
inputs (a value between 1 and 100), for each input.

Display a bar graph showing each value graphically
with the corresponding fieldname / legend under each.


Clickable & Moveable Object
Create an object with a sprite set. Allow this
object to be moved by clicking holding left mouse button over it and moving


Room Fade In & Out Transition
Create a system that fades a room to solid black, goes
to a new room and then fades from black to fully transparent


Typewriter Text Effect
To display string one character at a time. Make a
keyboard click sound as each new letter is shown.


Audio Volume Change Based On
To change the volume of a music track depending how
far player is from another object. The further away, lower the volume. The
closer it is, the higher the volume.


Move Object To Position Using
Create a path when mouse right button is pressed
that moves player to a new position whilst avoiding obstacles.


Make The Screen Shake
Make the room shake when S is pressed.


Create Snow Effect
Create a falling snow effect with two different
size snow flakes.


Password Easter Egg
Allow user to enter a password using the keyboard.
Allow player to enter at any time, do not use get_string. Make so that if the
player presses x and then types bacon, set as unlocked.

Follow Two Objects In View
Create two player objects, one moveable by arrow
keys, the other by WSAD.

Put this in a large (4000×4000) room.

Create a control object that keeps both players
objects in the view by changing the view


High / Low Number Game
Computer picks a random number between 1 and 100.

Player guesses by entering a number.

The computer will tell you if the number is too
high or too low.

Player keeps guessing until the number is found.


Calculate Average Position Of Two
Allow player to click twice in the room using the
mouse, storing the x and y position of each click.

Place an X at the average location.


Retrieve Text File Web From &
Save Locally
To retrieve a text file from a website, save
locally and then display the contents on screen.


Shuffle Pack Of Playing Cards
& Deal 5
Take 52 playing card sprites, shuffle them and then
deal out the top 5 cards when D is pressed


Reverse Sentence Order
Create a sentence. Take this sentence and reverse
the word order.


Rotate & Move Object To Mouse
To make an object rotate so it point towards the
mouse, and that slowly moves to the mouse position.


Firework Display Using Effects
To create a fireworks display using the effects
that GM provides


Random Sentence Generator
To create random sentences when S is pressed and
display on screen. The sentences should (to a point) make sense.


Pop Up RPG Style Text Box
Create a system that allows you to queue messages
and show them one at a time. Draw the messages as text, above a rectangle that only shows when a message


Room Wrapping
To make an object wrap around the screen on all

For example if it goes off the left the screen it
then appears on the right. Do the same for right, top and bottom.


Sprite Shadow
Create a script that draws a shadow of a sprite
that has been assigned to an object. Allow you to send through distance,
direction, colour and alpha.


Make A Jukebox Player For 4 Songs
To create a simple music player that plays 4 music
tracks. Have a separate button for each track. When a button is clicked, stop
any music already playing and play the selected track.


Scrolling Credits
Create a string that gives credits of a game. Make
the text scroll up from the bottom of the screen. Create so that when last
credit has left the screen the object is destroyed.


Random Dice Roller
To randomly roll 5 dice and display the results
graphically. Have a button to roll the dice.


Substitution Cipher
A substitution cipher is where each letter of the
original text is replaced by a different letter.

Allow a user to enter a sentence. Apply a
substitution cipher and display the result.


Save Highscore To INI
To create an INI system to save the highscore.
Display the highscore on screen. Create a button to allow user to enter a new
score, updating the INI file if the score is bigger. Show a message to indicate
whether highscore has been updated or not.


Spawn Point
To create 4 spawn points. When a player object
collides with it, the player remembers the position. If T is pressed the player
spawns back at last spawn point.


Dictionary Check
User to enter a word, check if it exists within a
dictionary text file. Display message showing whether it exists or doesn’t. A
text file is present in the resources that you can use for this.


Draw Text With Shadow
To draw text with a shadow.


Classic Brick & Ball Game
Create a simple remake of the classic brick and
ball game. Have a player bat that can be controlled by the keyboard. Have a
brick that player tries to hit with a ball.

Fire Projectile
To fire an object from a control object towards the
mouse position.


World Clock
Display the current time in 2 major cities (one
ahead of your local time and one behind), and your local time. Display hours
and minutes as texts. Ensure a leading 0 is present if only one digit each
part. Do this hard coded, or create a script.


Text Based Quiz
Takes a question, three possible answers, and the
correct answers from a text file.

Displays question each question and possible
answers and the correct option on screen.

Allow left and right to move through the sets.


On Screen Keyboard
To create a keyboard where user can click on a
letter and add this to a string. Also include an enter key. Each key should be
a separate object – do this manually or create buttons using code.


Create A Driveable Tank That
Leaves Tyre Tracks
Create a tank that can moved using the keyboard.
When it moves, place some tyre tracks that stay for a few seconds.


Parallax Background
To combine a number of backgrounds to create a
parallax effect. Have a player object that can move up and down. If player
object isn’t being moved, slowly move it back to middle. When moving up or
down, rotate with sprite. Base the parallax on the players y position.


Click The Ghost
To create a ghost that randomly appears at
different positions. Player gets points by clicking on it. Use a single image
or an animated sprite (in resources).


Particle Fire Effect
To create a fire place effect using GM’s partical

Sprites that you can use for this project are in
the resources pack.

This Asset Has Been Removed

Bubble Sort
Allow user to enter ten names. Sort them in order
using a bubble sort algorithm. Bubble sort is where you compare values and swap
if one has a bigger value than the other. You repeat this until all is in
order. (if you compare values however many times there are elements, then it
will be in order).


Unlockable Levels Select Screen
To create 5 buttons that can be locked or unlocked.
Show it’s current state using different sub-images. Use a single object for all
buttons. For testing purposes all left and right arrow key change the level.


Moon Lander AI
To create a moon lander vehicle, where mouse is
clicked, that can hover and move left and right on its own. It needs to land on
a target at the bottom of the screen. When moving it should carry some


Dodge The Barrels
To create a movable player object (left and right),
and barrels that fall from the top of the screen. Increase the frequency of the
barrels as the game progresses.


Convert Celsius To Fahrenheit
User enters a temperature in degrees C, convert to degrees


Find Path To Position Avoiding
To create a path from player to mouse click
position, avoiding objects.


Calculate BMI
User to enter weight and height, calculate and
display BMI.

BMI is weight divided by height^2.


Shuffle Pack Of Playing Cards
& Save To Text
To simulate a pack of cards being shuffled, save
the pack order to a file.


10 Green Bottles
To display lyrics to the song, 10 Green Bottles.
Use loops and variables to display the lyrics. This can be combined with
project 19.

147 Description

English To Morse Code
Accept a string from a user and convert to Morse
code and display on screen. Allow for letters only.


Blitz Game Remake
Blitz was a popular game in the 80s. You have a
ship that moves across the screen, gradually getting lower. The aim is to
destroy the buildings below.


Mini Golf Game Remake
Create a mini (crazy) golf game. Make the ball move
towards the mouse position. Use the distance from ball to mouse a reference for
how fast ball will travel. Create some objects that the player should navigate
to get to the hole.


Paper, Scissors Game Remake
Recreate the classic rock, paper and scissors.
Player to compete against computer. Allow keys R P S to make selection. First
to 10 points wins.


Health Based On Distance
Place an object in the room, set health as 1000.
Reduce health based on distance from object to mouse click.


Tank Trax Game Remake
To remake a basic version of Tank Trax (like a gorilla,
worms, angry bird type game).

Two players take turns trying to hit each other by
firing their gun.

Power and bullet direction set by position of mouse
relative to player


Two Separate Views
For this challenge you’ll need to create two
objects and two views, with each view following a different object. Have the
room size as 2000×2000 and each view as 400×400, shown side by side


Word Typing
To display a word at random on the screen. Player
is to type word before time runs out. If player types in time, award points,
reset timer and create a new word. If player does not type in time, reduce
points, reset timer and display a new word.


Destructible Terrain
To create a terrain that can be destroyed (have
holes cut in it) when hit by an object.


Duck Hunt
Game Remake
Duck Hunt is a classic game from the 1980s. A duck
flies across the screen and the aim is to shoot it down.


Player In View
To allow the view to follow a player object,
keeping a border whilst moving. Allow moving the player by WSAD and keep a
border of 250.


Fizz Buzz
Output numbers 1 to 50. If a number is multiple of
3, display fizz. If a number is multiple of 5, write buzz. If it is a multiple
of 3 and 5, write fizzbuzz.


Allow the user to enter to numbers between 1 and
1000, A and B

Then to calculate and display each of the

Which number is bigger

Multiple A by B

Divide biggest by

Calculate biggest
modular second

What A plus B is


Particle Trail Effect
To create a particle trail when an object moves.


Rectangle and Calculate Area & Perimeter
Allow user to click two places in a room. Draw a
rectangle and calculate and display it’s area and perimeter.


Random Terrain Generation
To create a side on partially random terrain
generation. To randomly place objects of grass next to each other +/- 3 times
the objects size. To place dirt under each grass tile 3 objects thick and stone
under the dirt. Grass, dirt and stone as separate objects.


Drop The Coin (arcade style)
To drop a coin from the top that bounces off of
pins to reach the bottom. Award points depending on which section it lands in


the Nth Result Of Fibonacci Sequence
User to enter a number (up to 50). Calculate the nth result of the
Fibonacci sequence. The sequence goes: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34 and continues
where the new number is the result of the previous 2 values.


From Object To Mouse
To calculate the distance from an object the mouse

Draw the distance and image angle under the object.


Convert Decimal To Binary, Oct,
Hex & Roman
To create scripts that convert a decimal entry to
other bases.


Text In X
To accept a sentence and then redraw with Xs around
it. For example:


Xhello worldX



Game Remake
To recreate the classic game frogger. You control a
frog. First you need to get past a busy
road, then navigate floating logs. Finally you need to reach the goal without
being eaten by the croc.


Take a
Screen Shot
Create an object that allows you to take a
screenshot and save it.
Set up for F to get the save path and take a

Great for allowing sharing of your game on social


Slowly Move Direction
To make an object slowly move to a direction, using
the shortest route. For this example towards the mouse cursor.

It will use a couple of scripts do this.

Great for enemy movement, turrets, tanks and more.


Style Game Remake
To recreate the classic game of pong. Set it up for
two players, player 1 using W S to move, and player 2 using up and down arrows.


Create a target moveable by the mouse. Left button
shoots a bullet. Have some targets that pop up at random for a short time.
Award a point if player hits a target whilst it is shown.


How Many
Of Each Letter
To accept an alphabetical string and count how many
of each letter is present. Display the results as text on the screen.


Torpedo Game Remake
Player to control a torpedo missile to a target,
avoiding obstacles. Controls are rotate left and right using arrow keys, up
arrow to increase speed whilst held.


Hundred Random Numbers
To create a random sequence of the numbers 1 to
100, without repetition. Display the output in 4 columns of 25.


Coin Flip
To simulate the flipping of a coin 100 times.
Display whether each flip is heads or tails. Keep track of the results and
display results as text.


Path Of An Object
This is a script that had to be included. It takes
the objects motion, friction and gravity to predict where it will be in a
certain no of steps.

For example I’ve added this to the Tank Trax
Challenge 53. I changed. (note I added gravity to the create event of both
bullets, and removed the vspeed code from the step events).

This calls the script and gets back the positions
in a ds grid. These values are then used to draw points.


Dynamic Button
To create a script that displays a button with the
text provided as a string.

Great creating buttons based on user input or
results from other code.


Game Remake
To remake the classic Sokoban game where you have
to push blocks into holes. Player can move into empty squares or push single
blocks into empty squares. Aim is to push all blocks into allocated holes.

For level design, see a site such as:


Top Down Football
To create a play area with a ball and multiple
players. The aim is took kick the ball around. Only player nearest ball can
move at any one time.


Top Down Racing
To create a basic track and car that can drive
around it. Make left and right steer car and up to accelerate. Cap a maximum
speed and apply friction. Set the room as 2000×2000 pixels and the view as
800×800 and to follow player.


Numbers (in digits) To Words
User to enter a number from 1 to 1000. Convert it
into words and display on screen. For example 234 would be “Two Hundred and
Thirty four”.


Zelda Style Views
To show only
part of a room at a time and scroll in next part of the room when player leaves
the edge.


Text File To eBook


Database (INI)
To extract data from the provided INI file (in
resources) and display on screen. Allow left and right arrows to change planet.

The INI file has separate sections for each planet,
and key for each of those.


How Much
You work at a bakers. You use flour to make bread.
Flour comes in bags of 7, 3 and 1KG. The baker tells you how many kg of flour
he needs. Calculate how many of each bag size is needed so use the minimum
number of bags possible.


Rotating Mini Map
To draw a mini of objects in the player’s vicinity
that rotates based on direction to mouse.


Selectable Troops
Create a system that allows you draw a rectangle by
clicking and holding mouse button and select any troops within or collide with
the rectangle. Highlight selected troops.


To allow user to place pipes within a room. To
connect up with any pipes next to the newly placed pipe.

Sprites for this are in the resources pack.


Arcade Style
Horse Race Game
To recreate the classic coin op game where horses
move at random speeds from left to right.

Create four horses and have them race each other.

Sprites for the horses are in the resource pack.


Road Builder
To allow the player to add more road objects to an
existing road.


Board Representation
To draw a chess board and pieces. Allow pieces to
be moved by clicking and drag (no ai). Allow left mouse button to pick up a
piece and right button to place it.


1942 Game
To create the classic style of game play for 1942.
A player at the bottom of the room controls a ship and fires bullets at enemy
planes coming from the top . Some enemies fire bullets back. If a player shoots
down an enemy that get points. If they are hit by an enemy bullet they lose health.


Create A
Virtual ATM (bank teller)
Create a virtual ATM (bank teller) that keeps a
record of 10 card numbers, PIN code and bank balance.

Allow user to enter card no and PIN and withdrawal
cash if available.

Update bank balance accordingly.


Moon Lander
Game Remake
To create a moveable ship that can move left and
right by applying a force in the direction, and apply upwards force. Also
simulate some gravity. Aim is to land on platform at bottom of room.


An Image
To get colours values from points in a picture and
use these values to re-draw the values to create a pixelated effect.


To create a top down mining system where player can
destroy and build blocks. Allow left click to destroy a block and right click
build one.


Player (Ghost)
Create a moveable player object, and use it’s
movement to create a ghost that loosely follows the path the player has been.
Set it up for keypress P to start the ghost moving.

To draw on screen a standard 12×12 multiplication


Download Instantly For $4




There are no reviews yet.

Be the first to review “GameMaker Studio Examples”

Your email address will not be published. Required fields are marked *