Ben Tyers

GameMaker Fundamentals

Learn GML Programming to Start Making Amazing Games

Ben Tyers
Worthing, West Sussex, UK
ISBN 978-1-4842-8712-5e-ISBN 978-1-4842-8713-2
© Ben Tyers 2023
Standard Apress
Trademarked names, logos, and images may appear in this book. Rather than use a trademark symbol with every occurrence of a trademarked name, logo, or image we use the names, logos, and images only in an editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the trademark. The use in this publication of trade names, trademarks, service marks, and similar terms, even if they are not identified as such, is not to be taken as an expression of opinion as to whether or not they are subject to proprietary rights.
The publisher, the authors and the editors are safe to assume that the advice and information in this book are believed to be true and accurate at the date of publication. Neither the publisher nor the authors or the editors give a warranty, express or implied, with respect to the material contained herein or for any errors or omissions that may have been made. The publisher remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

This Apress imprint is published by the registered company APress Media, LLC, part of Springer Nature.

The registered company address is: 1 New York Plaza, New York, NY 10004, U.S.A.

Introduction

A note from the author:

Congratulations!

You are about to learn the basics of GameMaker and potentiallystart a career in game making.

This book is an introduction to the game-making process, an introduction to GameMaker, and other considerations when making your first game.

GameMaker is a powerful piece of software for making games. This book only covers the basics but is a great place to start. This book uses the updated 2022 edition.

Best of luck with your game-making endeavors.

Ben

Welcome

The purpose of this book is to provide you with some of the knowledge that I have acquired. I make no claim that I’m the best coder or designer, but I do have a proficient understanding that I would like to instill in other budding game makers.

The book is broken down into 29 main chapters and three appendixes: one that pulls together the knowledge you gained from the book to create a game, one offering programming challenges, and one covering how to get set up with GameMaker and its IDE.

The main chapters each introduce a separate programming concept and explain what it is used for and how it is applied, along with some examples. Each of these chapters then finishes with some assignments.

The game chapter details how to make a simple shooting game.

You are then presented with 65 programming challenges, each of which adds a new feature to the game you have just made.

Source Code

All source code in this book can be downloaded from github.com/apress/gamemaker-fundamentals.

Acknowledgments

Various Audio and Graphics Used in Game and Challenges: Permission Given to Use by Yoyogames.com. Please Do Not Redistribute These Assets.

Graphics:

Aeroplane: Pzuj/Opengameart.org – CC0

Animated Boy Sprites: Bevouliin.com/Opengameart.org – CC0

Arrow: oglsdl/Opengameart.org – CC0

Asteroids: Jasper/Opengameart.org – CC0

Bag: Flowly/Opengameart.org – CC0

Ball: Gothicfan95/Freepik.com

Barrel: Manenwolf/Opengameart.org – CC0

Beach Scene: Tgfcoder/Opengameart.org – CC0

Bee: Carriejanesart/Opengameart.org – CC0

Birds: Bevouliin.com/Opengameart.org – CC0 && CC-BY 4.0

Blue Character: Kenny/Opengameart.org – CC0

Boats: Kutejnikov/Opengameart.org – CC0

Bomb Sprite: Znevs/Opengameart.org – CC0

Boss Missile: Bevouliin.com/Opengameart.org – CC0

Boss Plane: Bevouliin.com/Opengameart.org – CC0

Bullets Set: Bevouliin.com/Opengameart.org – CC-BY 3.0

Buttons: Game Developer Studio/Opengameart.org – CC-BY 3.0

Crosshair: hc/Opengameart.org – CC0

Caveman: Hapiel/Opengameart.org – CC0

Cloud: Bananaowl/Opengameart.org – CC-BY 3.0

Clouds: Bevouliin.com/Opengameart.org – CC0

Crate: Rfc1394/Opengameart.org – CC0

Crocodile Character: Bevouliin.com/Opengameart.org – CC0

Dinosaur: Pzuj/Opengameart.org – CC0

Donuts: Game Developer Studio/Opengameart.org – CC-BY 3.0

Eggs: Ogreofwart/Opengameart.org – CC0

Elements: Game Developer Studio/Opengameart.org – CC-BY 3.0

Explosion: Stumpystrust/Opengameart.org – CC0

Extra Character Sprites: Bevouliin.com/Opengameart.org – CC0

Firenall: Cethiel/Opengameart.org – CC0

Firework: Jellyfish/Opengameart.org – CC0

Fuel Collectable: Freestockimages/Opengameart.org – CC0

Fuel Gauge: JM.Atencia/Opengameart.org – CC-BY 3.0

Fish: Sylly/Opengameart.org – CC0

Forest: Ansimuz/Opengameart.org – CC0

Gems: Wenrexa/Opengameart.org – CC0

Grass Sky Backgrounds Images: Segel/Opengameart.org – CC0

Green Horn Zombie Sprites: Bevouliin.com/Opengameart.org – CC0

Green Zombie: Segel/Opengameart.org – CC0

Guns & Bullets Images: Kay Lousberg/Opengameart.org – CC0

Heart/Lives Sprite: Cdgramos/Opengameart.org – CC0

Missile Enemy: Bevouliin.com/Opengameart.org – CC0

Laser: Rawdanitsu/Opengameart.org – CC0

Missile: JM.Atencia/Opengameart.org – CC-BY 3.0

Mountain Background Images: Ansimuz/Opengameart.org – CC0

Mountain Images: Ansimuz/Opengameart.org – CC0

Mouse Icons: Qubodup/Opengameart.org – CC0

Padlocks: Rawpixel.com/Freepik.com

Plane Game Background: Bevouliin.com/Opengameart.org – CC0 && OGA-BY-3.0

Rocks: Bevouliin.com/Opengameart.org – CC0

Rotating Coin Sprites: Puddin/Opengameart.org – CC0

Rpg Character: Curt/Opengameart.org – CC-BY 3.0

Sea Background: Donte/Opengameart.org – CC0

Shinny Coins: Bevouliin.com/Opengameart.org – CC0 && CC-BY 4.0

Space Background: Satur9/Opengameart.org – CC0

Space Parallax Images: Ansimuz/Opengameart.org – CC0

Spaceship: Bevouliin.com/Opengameart.org – CC-BY 3.0 & CC0

Spiky Land Monster: Bevouliin.com/Opengameart.org – CC0

Star: Jellyfish/Opengameart.org – CC0

Tileset: Buch/Opengameart.org – CC0

Top Down Zombie Images: Riley Gombart/Opengameart.org – CC0

Underwater: Game Developer Studio/Opengameart.org – CC-BY 3.0

Walking Green Monster Sprites: Bevouliin.com/Opengameart.org – CC0

Wall: Beaterator/Opengameart.org – CC0

Audio:

Beep: Thisusernameis/Freesound.org – CC0

Bird Sound: JackWilDesign/Freesound.org – CC0

Bell Sound: Se2001/Freesound.org – CC0

Coins (long) dj997/Freesound.org – CC-BY 3.0

Dance Music: Davejf/Freesound.org – CC0

Explosion Sound: Derplayer/Freesound.org – CC0

Firework: Rudmer_rotteveel/Freesound.org – CC0

Gun Sound: Mrrap4food/Freesound.org – CC0

Heavy Beet Music: Jpmusic82/Freesound.org – CC0

Machine Gun Sound: Pgi/Freesound.org – CC0

Melody Music: Drfx/Freesound.org – CC0

Menu Sound: Apenguin73/Freesound.org – CC0

Nuke Sound: Tristanluigi/Freesound.org – CC0

Ouch: Legnalegna55/Freesound.org – CC0

Ping Sound: Wilhellboy/Freesound.org – CC0

Plane Game Level Music: Rezoner/Opengameart.org – CC-BY 3.0

Plane Game Menu Music: Cynicmusic/Opengameart.org – CC0

Plane Game Sound Effects: Subspaceaudio/Opengameart.org – CC0

Random Sound 1: Mosrod/Freesound.org – CC0

Random Sound 2: Littlerainyseasons/Freesound.org – CC0

Random Sound 3: Elfstonepress/Freesound.org – CC0

Random Sound 4: Alanmcki/Freesound.org – CC0

Random Sound 5: Jeremysykes/Freesound.org – CC0

Rocket Sound: Derplayer/Freesound.org – CC0

Table of Contents
Free360
About the Author
Ben Tyers

is an expert GameMaker user, developer, coder, and trainer, with over 10 years of experience in GameMaker. He has authored several books on GameMaker for game application developers. He runs a popular gaming website, which features accessible games that can be played by gamers with physical disabilities, with around one new game added every month. He has learnt GML coding to a reasonable level and has picked up many skills, tips and tricks, and methodology for making games in GameMaker.

 
About the Technical Reviewer
Mark Alexander

A photo of Mark Alexander.

has been a technical writer for the last 12 years, starting his career working for YoYo Games in Scotland, where he was in charge of the GameMaker documentation for almost ten years. After that, he moved on to work at Asobo Studio in France, where he is doing the technical documentation for the Microsoft Flight Simulator SDK.

In his spare time – apart from reading sci-fi, collecting Lego, and playing video games – he creates and publishes small indie games and also creates assets for people to use in GameMaker. Any time he has left after that, he dedicates to the administration of the GameMaker Community Forum.

 
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.84.175