200 Examples

200+ GMZ Files – GameMaker: Studio GML Examples

Section 1 – Basic Examples – Variables

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 drawingalternative:

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.

 

Get Free Previews Of The Above Books

 

Section 12 – Advanced Example – Rooms

C) Creates 2 rooms, A B. Visualised as:

A

B

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.

Examples 100 To 200 Include Code & Some Comments

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.

101.gmz Download

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

102.gmz 

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

103.gmz Download

Typewriter Text Effect

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

104.gmz Download

Audio Volume Change Based On
Distance

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.

105.gmz Download

Move Object To Position Using
Path

Create a path when mouse right button is pressed
that moves player to a new position whilst avoiding obstacles.

106.gmz Download

Make The Screen Shake

Make the room shake when S is pressed.

107.gmz Download

Create Snow Effect

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

108.gmz Download

Name

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.
109.gmz Download

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

110.gmz Download

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.

111.gmz Download

Calculate Average Position Of Two
Clicks

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.

112.gmz Download

Retrieve Text File Web From &
Save Locally

To retrieve a text file from a website, save
locally and then display the contents on screen.

113.gmz Download

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

114.gmz Download

Reverse Sentence Order

Create a sentence. Take this sentence and reverse
the word order.

115.gmz Download

Rotate & Move Object To Mouse
Position

To make an object rotate so it point towards the
mouse, and that slowly moves to the mouse position.

116.gmz Download

Firework Display Using Effects

To create a fireworks display using the effects
that GM provides

117.gmz Download

Random Sentence Generator

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

118.gmz Download

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

119.gmz Download

Room Wrapping

To make an object wrap around the screen on all
sides.

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

120.gmz Download

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.

121.gmz Download

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.

122.gmz Download

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.

123.gmz Download

Random Dice Roller

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

124.gmz Download

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.

125.gmz Download 

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.

126.gmz Download

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.

127.gmz Download

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.

128.gmz Download

Draw Text With Shadow

To draw text with a shadow.

129.gmz Download

Classic Brick & Ball Game
Remake

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.

130.gmz Download

Fire Projectile

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

131.gmz Download 

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.

132-script.gmz Download

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.

133.gmz Download

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.

134.gmz Download

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.

135.gmz Download

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.

136.gmz Download 

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

137.gmz Download

Particle Fire Effect

To create a fire place effect using GM’s partical
system.

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

138.gmz Download

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

139.gmz Download

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.

140.gmz Download

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

141.gmz Download

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.

142.gmz Download

Convert Celsius To Fahrenheit

User enters a temperature in degrees C, convert to degrees
Fahrenheit.

143.gmz Download

Find Path To Position Avoiding
Objects

To create a path from player to mouse click
position, avoiding objects.

144.gmz Download

Calculate BMI

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

BMI is weight divided by height^2.

145.gmz Download

Shuffle Pack Of Playing Cards
& Save To Text

To simulate a pack of cards being shuffled, save
the pack order to a file.

146.gmz Download

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.gmz Description

English To Morse Code

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

148.gmz Download

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.

149.gmz Download

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.

150.gmz Download

Get Free Previews Of The Above Books

 

Rock,
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.

151.gmz Download

Health Based On Distance

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

152.gmz Download

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

153.gmz Download

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

154.gmz Download

Word Typing
Game

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.

155.gmz Download

Destructible Terrain

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

156.gmz Download

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.

157.gmz Download

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

158.gmz Download

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.

159.gmz Download

Calculate
Numbers

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

Then to calculate and display each of the
following:

·
Which number is bigger

·
Multiple A by B

·
Divide biggest by
smallest

·
Calculate biggest
modular second

·
What A plus B is

160.gmz Download

Particle Trail Effect

To create a particle trail when an object moves.

161.gmz Download

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

162.gmz Download

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.

163.gmz Download

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

164.gmz Download

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

165.gmz Download

Distance
From Object To Mouse

To calculate the distance from an object the mouse
location.

Draw the distance and image angle under the object.

166.gmz Download

Convert Decimal To Binary, Oct,
Hex & Roman

To create scripts that convert a decimal entry to
other bases.

167.gmz Download

Text In X
Box

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

XXXXXXXXXXX

Xhello worldX

XXXXXXXXXXX

168.gmz Download

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

169.gmz Download

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

Great for allowing sharing of your game on social
media.

170.gmz Download

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.

171.gmz Download

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

172.gmz Download

Shooting
Gallery

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.

173.gmz Download

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.

174.gmz Download

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.

175.gmz Download

One
Hundred Random Numbers

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

176.gmz Download

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.

177.gmz Download

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

178.gmz Download

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.

179.gmz Download

Sokoban
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:

http://sneezingtiger.com/sokoban/levels.html

180.gmz Download

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.

181.gmz Download

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.

182.gmz Download

Convert
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”.

183.gmz Download

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.

184.gmz Download

Convert
Text File To eBook

desc

185.gmz Download

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

186.gmz Download

How Much
Flour

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.

187.gmz Download

Rotating Mini Map

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

188.gmz Download

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.

189.gmz Download

Pipes

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.

190.gmz Download

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.

191.gmz Download

Road Builder

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

192.gmz Download

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

193.gmz Download

1942 Game
Remake

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.

194.gmz Download

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.

195.gmz Download

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.

196.gmz Download

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

 

197.gmz Download

Miner

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.

198.gmz Download

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

199.gmz Download

Multiplication
Table

To draw on screen a standard 12×12 multiplication
table.

200.gmz Download

 

Acknowledgements and Credits

 

Music:

          David Szesztay Cheese

          Scott Holmes Happy Go Lucky

          Broke For Free Night Owl

          Urbano A. Zafra Danza Filipina

ghost sprite:
@XenosNS

Shadow Script: Peter
Christian Jørgensen

Board Game Sprites:
Kenney.nl

 

Destructible
Terrain:roychanmeliaz

Croc Image:
iconarchive.com

Random Terrain: Reed
Hector

GMLscripts.com – see:
GMLscripts.com/license. For The Following Scripts:

          motion_predict

          dec_to_bin

          dec_to_hex

          dec_to_oct

          dec_to_roman

          draw_get_button

Get Free Previews Of The Above Books