GameMaker Game Programming with GML

Learn GameMaker Language programming concepts and script integration with GameMaker: Studio through hands-on, playable examples.
Preview in Mapt

GameMaker Game Programming with GML

Matthew DeLucas

1 customer reviews
Learn GameMaker Language programming concepts and script integration with GameMaker: Studio through hands-on, playable examples.
Mapt Subscription
FREE
$29.99/m after trial
eBook
$10.00
RRP $26.99
Save 62%
Print + eBook
$44.99
RRP $44.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$10.00
$44.99
$29.99 p/m after trial
RRP $26.99
RRP $44.99
Subscription
eBook
Print + eBook
Start 30 Day Trial

Frequently bought together


GameMaker Game Programming with GML Book Cover
GameMaker Game Programming with GML
$ 26.99
$ 10.00
Programming in GameMaker Studio 2 [Video] Book Cover
Programming in GameMaker Studio 2 [Video]
$ 124.99
$ 10.00
Buy 2 for $20.00
Save $131.98
Add to Cart

Book Details

ISBN 139781783559442
Paperback350 pages

Book Description

GameMaker: Studio is a popular game engine used to publish games to a variety of platforms. Although GameMaker: Studio's drag-and-drop functionality makes creating games simple and fast, utilizing scripts can really help organize and speed up GameMaker's workflow exponentially.

This hands-on guide will help you build a strong foundation in programming in GameMaker Language by taking you through several example games. Knowledge gained by the end of the book can be applied so you can build your own line of exciting games.

Table of Contents

Chapter 1: Getting Started – An Introduction to GML
Creating GML scripts
Understanding parts of GML scripts
Pushing your buttons
Summary
Chapter 2: Random Organization – Creating a Puzzle Game
Understanding sprite variables and functions
Setting up the puzzle game
Aligning the pieces of the puzzle game to a grid
Understanding and utilizing randomization
Checking pieces
Running it all together
Summary
Chapter 3: So How Do I Play? – Adding Player Interaction
Designing player interaction
Creating resources to integrate mouse input into the puzzle game
Updating organization with scr_reorganize_board
Integrating keyboard input
Summary
Chapter 4: Juicy Feedback – Aural and Visual Effects
Introducing alarms
Hiding the pin drop – adding audio
Creating sound resources
Visualizing effects with particles
Integrating particles
Summary
Chapter 5: Solving the Puzzle – Finishing Touches to the Puzzle Game
Drawing and graphical user interface
Gathering resources for creating the main menu
Scripting obj_main_menu
Changing obj_grid_manager
Integrating score and time
Summary
Chapter 6: Finite State Machines – Starting the 2D Platformer
Introducing finite state machines
Gathering resources for the platformer
Defining Vlad's state constants
Starting Vlad's events and scripts – walking
Summary
Chapter 7: It's in the Name – Platforms and Collisions
Collision – a crash course
Gathering resources to build platforms
Populating the room
Working with Collision events
Moving platforms with paths
Integrating the moving platforms
Preventing Vlad from leaving
Knowing the design ahead of time (when possible)
Summary
Chapter 8: Setting the Stage – Views, Backgrounds, and Tiles
Expanding the room – views
Adjusting view parameters
Preparing the game for obj_camera
Setting the environment – backgrounds
Introducing tiles
Summary
Chapter 9: Breaking Vlad – Pickups, Hazards, and Enemies
Tracking health with Draw and Draw GUI
Working with pickups
Dying from hazards
Fighting the player with enemies
Summary
Chapter 10: GOAL – Timelines and Feedback Review
GOAL!
Introducing timelines
Gathering resources for integrating the timeline
Creating and applying the timeline
Reviewing polish, feedback, and juiciness
Providing feedback when Vlad is damaged
Extending the enemy death sequence
Summary
In closing...

What You Will Learn

  • Create script resources as well as custom scripts for events
  • Learn how to import, compress, and play sound effects and background music
  • Build particle effect systems to give games a little extra flare
  • Track and display user interface elements such as health and scoring
  • Program and interact with simple yet challenging artificial intelligence
  • Read player input from a variety of sources
  • Utilize alarms to create a clean series of events
  • Establish a finite state machine to track a character's current state
  • Complete easy and fun games from start to finish

Authors

Table of Contents

Chapter 1: Getting Started – An Introduction to GML
Creating GML scripts
Understanding parts of GML scripts
Pushing your buttons
Summary
Chapter 2: Random Organization – Creating a Puzzle Game
Understanding sprite variables and functions
Setting up the puzzle game
Aligning the pieces of the puzzle game to a grid
Understanding and utilizing randomization
Checking pieces
Running it all together
Summary
Chapter 3: So How Do I Play? – Adding Player Interaction
Designing player interaction
Creating resources to integrate mouse input into the puzzle game
Updating organization with scr_reorganize_board
Integrating keyboard input
Summary
Chapter 4: Juicy Feedback – Aural and Visual Effects
Introducing alarms
Hiding the pin drop – adding audio
Creating sound resources
Visualizing effects with particles
Integrating particles
Summary
Chapter 5: Solving the Puzzle – Finishing Touches to the Puzzle Game
Drawing and graphical user interface
Gathering resources for creating the main menu
Scripting obj_main_menu
Changing obj_grid_manager
Integrating score and time
Summary
Chapter 6: Finite State Machines – Starting the 2D Platformer
Introducing finite state machines
Gathering resources for the platformer
Defining Vlad's state constants
Starting Vlad's events and scripts – walking
Summary
Chapter 7: It's in the Name – Platforms and Collisions
Collision – a crash course
Gathering resources to build platforms
Populating the room
Working with Collision events
Moving platforms with paths
Integrating the moving platforms
Preventing Vlad from leaving
Knowing the design ahead of time (when possible)
Summary
Chapter 8: Setting the Stage – Views, Backgrounds, and Tiles
Expanding the room – views
Adjusting view parameters
Preparing the game for obj_camera
Setting the environment – backgrounds
Introducing tiles
Summary
Chapter 9: Breaking Vlad – Pickups, Hazards, and Enemies
Tracking health with Draw and Draw GUI
Working with pickups
Dying from hazards
Fighting the player with enemies
Summary
Chapter 10: GOAL – Timelines and Feedback Review
GOAL!
Introducing timelines
Gathering resources for integrating the timeline
Creating and applying the timeline
Reviewing polish, feedback, and juiciness
Providing feedback when Vlad is damaged
Extending the enemy death sequence
Summary
In closing...

Book Details

ISBN 139781783559442
Paperback350 pages
Read More
From 1 reviews

Read More Reviews

Recommended for You

GameMaker Cookbook Book Cover
GameMaker Cookbook
$ 35.99
$ 10.00
GameMaker Essentials Book Cover
GameMaker Essentials
$ 19.99
$ 10.00
GameMaker Programming By Example Book Cover
GameMaker Programming By Example
$ 35.99
$ 10.00
HTML5 Game Development with GameMaker Book Cover
HTML5 Game Development with GameMaker
$ 26.99
$ 10.00
Mastering Unity 2D Game Development - Second Edition Book Cover
Mastering Unity 2D Game Development - Second Edition
$ 43.99
$ 10.00
Unity 5: Learning C# by Developing Games Book Cover
Unity 5: Learning C# by Developing Games
$ 69.99
$ 10.00