O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

GameMaker Essentials

Book Description

Learn all the essential skills of GameMaker: Studio and start making your own impressive games with ease

In Detail

GameMaker: Studio is a great game engine that can be used to publish games to a variety of platforms. It is one of the most versatile game creation tools for professional and beginner game developers alike.

Starting with the basics of learning how to install GameMaker, this book will take you all the way through to publishing your games online. Compiled with detailed instructions and images, this book starts by showing you how the GameMaker: Studio interface looks and works. After this, you'll move on to learning about resources such as sprites, paths, sounds, and more available in GameMaker, and what each resource is used for. We then move into the GameMaker Language (GML) and learn programing techniques including how variables are set up and what functions are and how they work. You'll understand how to manipulate GameMaker resources using GML. Following this, you will then make your very first GameMaker game using a combination of resources and programing techniques, and learn how to advertise your game and generate revenue and publicity for it. You can then export and publish your games across desktop and mobile platforms.

What You Will Learn

  • Get to grips with the GameMaker: Studio interface
  • Discover resources such as sprites, shaders, scripts, and many more in GameMaker and what each one is used for
  • Create and animate sprites using the GameMaker sprite editor
  • Design your own game using GameMaker Language programing
  • Create objects and program them to use in your games
  • Set up monetization and analytics in your games
  • Deploy and publish your games online across platforms such as Android, iOS, and Windows

Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.

Table of Contents

  1. GameMaker Essentials
    1. Table of Contents
    2. GameMaker Essentials
    3. Credits
    4. About the Author
    5. About the Reviewers
    6. www.PacktPub.com
      1. Support files, eBooks, discount offers, and more
        1. Why subscribe?
        2. Free access for Packt account holders
    7. Preface
      1. What this book covers
      2. What you need for this book
      3. Who this book is for
      4. Conventions
      5. Reader feedback
      6. Customer support
        1. Downloading the color images of this book
        2. Errata
        3. Piracy
        4. Questions
    8. 1. Introducing GameMaker
      1. Understanding GameMaker
        1. GameMaker: Studio
      2. Installing GameMaker: Studio
      3. What is this book about?
      4. Summary
    9. 2. Getting Started
      1. Licensing
        1. The welcome window
        2. The main toolbar
        3. The drop-down menus
        4. The resource tree
      2. Summary
    10. 3. Resource Management
      1. Resources in GameMaker
        1. Sprites
        2. Sounds
        3. Backgrounds
        4. Paths
        5. Scripts
        6. Shaders
        7. Fonts
        8. Timelines
        9. Objects
        10. Rooms
        11. Extensions
        12. Macros
      2. Resource naming conventions
      3. Organizing resources
        1. Groups
        2. Sprite animations
      4. Importing and exporting resources
        1. Importing graphics and sounds
        2. Importing GameMaker resources
        3. Exporting resources
        4. Exporting scripts
      5. Summary
    11. 4. Objects
      1. Events
        1. The step event
        2. Room speed
        3. The draw event
      2. Parents
        1. Making a parent
        2. Parents and collisions
      3. Depth
        1. Depth ordering
        2. Changing an object's depth
      4. Drag and drop
        1. Creating a sprite
        2. Making our object
        3. Creating a room
      5. Summary
    12. 5. The GameMaker Language
      1. Variables
        1. Instance variables
        2. Local variables
        3. Global variables
        4. Macros
        5. Arrays
        6. One-dimensional arrays
        7. Two-dimensional arrays
      2. Functions
      3. Statements and loops
        1. Statements
          1. The if statement
          2. The else statement
          3. The else if statement
        2. Loops
          1. The repeat loop
          2. The while loop
          3. The for loop
      4. Scripts
        1. Creating a script
        2. Naming a script
        3. Writing a script
        4. Executing a script
        5. Arguments in scripts
        6. Argument hints in scripts
        7. Returning a value
      5. Summary
    13. 6. Sprites
      1. Loading a sprite
      2. Sprite options
        1. Sprite origins
        2. Collision masks
          1. Editing a collision mask
        3. Texture settings
      3. Sprite sizing techniques
        1. The power of two
        2. Templates
      4. Editing a sprite
        1. Starting from scratch
        2. Effects
      5. Sprites in the GameMaker Language
        1. Setting an object's sprite
        2. Getting the width and height of a sprite
        3. Getting the offset of a sprite
        4. Setting the animation speed of a sprite
        5. Setting the frame of a sprite
        6. Setting the alpha of a sprite
        7. Setting the rotation of a sprite
        8. Changing the scale of a sprite
        9. Finding out how many subimages a sprite has
      6. Summary
    14. 7. Making a Game
      1. Making the sprites
      2. Room setup
      3. Object creation
      4. Programming the game
        1. Collectables
      5. Enemies
      6. Summary
    15. 8. Debugging
      1. Errors
        1. Undeclared variable
      2. Drawing information
        1. Drawing text
        2. Drawing lines and shapes
      3. Simple toggles
      4. The GameMaker debugger
      5. Summary
    16. 9. Game Settings and Exporting
      1. Global Game Settings
      2. Analytics and advertising
        1. Advertising
        2. Analytics
      3. Exporting a game
      4. Publishing your game
        1. YoYo Player
        2. Game Jolt
      5. Skill summary
      6. Taking this further
      7. Games made in GameMaker
      8. GameMaker learning sites
        1. The GameMaker Community
        2. YouTube
      9. Summary
    17. Index