GameMaker Cookbook
eBook - ePub

GameMaker Cookbook

  1. 212 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

GameMaker Cookbook

About this book

Over 50 hands-on recipes to help you build exhilarating games using the robust GameMaker system

About This Book

  • Design and develop game elements that can be used alone or stacked to enhance your gaming experience
  • Explore extensions that can unlock GameMaker: Studio's true potential to create complex games
  • A recipe-based, easy-to-follow guide to take your GameMaker skills to the next level

Who This Book Is For

This book is intended for GameMaker: Studio enthusiasts who are looking to add more substance and improve their content. If know your way around the program and have some basic GML skills but want to take them further, then this book is for you.

What You Will Learn

  • Set up player control schemes of various types, such as touch controls and a gamepad
  • Create your own physics sandbox
  • Get accustomed to advanced player movement
  • Implement music and 3D sound in your games
  • Utilize GameMaker's GUI layers to create exciting games
  • Generate adjustable game settings and save systems
  • Add depth to your game with lighting and special effects

In Detail

GameMaker: Studio started off as a tool capable of creating simple games using a drag-and-drop interface. Since then, it has grown to become a powerful instrument to make release-ready games for PC, Mac, mobile devices, and even current-gen consoles. GameMaker is designed to allow its users to develop games without having to learn any of the complex programming languages such as C++ or Java. It also allows redistribution across multiple platforms.

This book teaches you to harness GameMaker: Studio's full potential and take your game development to new heights.

It begins by covering the basics and lays a solid foundation for advanced GameMaker concepts. Moving on, it covers topics such as controls, physics, and advanced movement, employing a strategic approach to the learning curve. The book concludes by providing insights into complex concepts such as the GUI, menus, save system, lighting, particles, and VFX.

By the end of the book, you will be able to design games using GameMaker: Studio and implement the same techniques in other games you intend to design.

Style and approach

A problem-solving guide that teaches you the construction of game elements and mechanics to be integrated in games for rapid prototyping. Each overall topic includes several individual recipes taught through step-by-step instructions, and in-depth follow-up with examples.

Tools to learn more effectively

Saving Books

Saving Books

Keyword Search

Keyword Search

Annotating Text

Annotating Text

Listen to it instead

Listen to it instead

GameMaker Cookbook


Table of Contents

GameMaker Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why Subscribe?
Free Access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Sections
Getting ready
How to do it…
How it works…
There's more…
See also
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
1. Game Plan – Creating Basic Gameplay
Introduction
Animating a sprite
Getting ready
How to do it…
How it works...
There's more...
See also
Moving your player
Getting ready
How to do it...
How it works...
There's more...
See also
Adding projectiles
Getting ready
How to do it...
How it works...
See also
Creating hazards
Getting ready
How to do it...
How it works...
Programming basic enemies
Getting ready
How to do it...
How it works...
There's more...
See also
Setting up player health and lives
Getting ready
How to do it...
How it works...
There's more...
Creating scoring mechanism
Getting ready
How to do it...
How it works...
There's more...
See also
Creating win/lose scenarios
Getting ready
How to do it...
How it works...
There's more...
See also
2. It's Under Control – Exploring Various Control Schemes
Introduction
Keyboard controls
Mouse controls
Gamepad controls
Touch controls
Tilt controls
Creating 2D movement
Getting ready
How to do it...
How it works...
There's more...
See also
Adding a Run button
Getting ready
How to do it...
How it works...
Making your character jump
Getting ready
How to do it...
How it works...
There's more...
See also
Using a point-and-click interface
Getting ready
How to do it...
How it works...
There's more...
See also
Following the cursor
Getting ready
How to do it...
How it works...
There's more...
See also
Setting up a controller
Getting ready
How to do it...
How it works...
Utilizing analogue joystick acceleration
Getting ready
How to do it...
How it works...
There's more...
See also
Adding tap control
Getting ready
How to do it...
How it works...
There's more...
Using swipes
Getting ready
How to do it…
How it works…
There's more…
Moving characters or objects by tilting a device
Getting ready
How to do it...
How it works...
There's more...
3. Let's Move It – Advanced Movement and Layout
Introduction
Drag and drop items/characters
Grid-based movements
Paths
Multiple inputs
Dragging onscreen objects
Getting ready
How to do it
How it works
Dragging objects on a grid
Getting ready
How to do it
How it works
Moving a character on a grid
Getting ready
How to do it
How it works
There's more…
Setting a path
Getting ready
How to do it
How it works
There's more
Creating enemy pathfinding
Getting ready
How to do it
How it works
There's more…
See also
Controlling a character with a mouse and keyboard
Getting ready
How to do it
How it works
There's more
See also
4. Let's Get Physical – Using GameMaker's Physics System
Introduction
Physics engine 101
Gravity and force
Physics in the environment
Advanced physics-based objects
Creating objects that use physics
Getting ready
How to do it
How it works
Alternating gravity
Getting ready
How to do it
How it works
There's more
Applying force via magnets
Getting ready
How to do it
How it works
Creating a moving platform
Getting ready
How to do it
How it works
Making a rope
Getting ready
How to do it
How it works
There's more
5. Now Hear This! – Music and Sound Effects
Introduction
Audio basics
Sound effects
3D audio
Importing and playing background music
Getting ready
How to do it
How it works
There's more
Implementing situational sound effects
Getting ready
How to do it
How it works
There's more
Adding sound emitters and listeners
Getting ready
How to do it
How it works
There's more
Adjusting the listener orientation
Getting ready
How to do it
How it works
Replicating the Doppler effect with emitters
Getting ready
How to do it
How it works
6. It's All GUI! - Creating Graphical User Interface and Menus
Introduction
GUI basics
Game screens and menus
Setting up a basic HUD with code
Getting ready
How to do it
How it works
Making your HUD scalable
Getting ready
How to do it
How it works
Using the GUI layer in full screen mode with views
Getting ready
How to do it
How it works
There's more
Adding a title screen
Getting ready
How to do it
How it works
Creating splash pages
Getting ready
How to do it
How it works
There's more
Adding a game over screen
Getting ready
How to do it
How it works
7. Saving the Day – Saving Game Data
Introduction
Background data
Save systems
Creating game settings
Getting ready
How to do it
How it works
There's more
Making a pause screen
Getting ready
How to do it
How it works
There's more
Saving player selection and score
Getting ready
How to do it
How it works
There's more
Encrypting and decrypting save data
Getting ready
How to do it
How it works
8. Light 'em up! – Enhancing Your Game with Lighting Techniques
Introduction
Basic lighting
Light transitions
Light effects
Creating a room with a light switch
Getting ready
How to do it
How it works
There's more
Lighting objects with a spot light
Getting ready
How to do it
How it works
There's more
Changing day to night
Getting ready
How to do it
How it works
There's more
Creating a flashlight
Getting ready
How to do it
How it works
Making a flickering torch
Getting ready
How to do it
How it works
9. Particle Man, Particle Man – Adding Polish to Your Game with Visual Effects and Particles
Introduction
Particles
Game feedback
Using particles to simulate kicking up dust
Getting ready
How to do it...
How it works...
There's more...
Simulating rainfall
Getting ready
How to do it...
How it works...
There's more...
Creating a...

Table of contents

  1. GameMaker Cookbook

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn how to download books offline
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 990+ topics, we’ve got you covered! Learn about our mission
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more about Read Aloud
Yes! You can use the Perlego app on both iOS and Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Yes, you can access GameMaker Cookbook by Brandon Gardiner in PDF and/or ePUB format, as well as other popular books in Computer Science & Computer Science General. We have over one million books available in our catalogue for you to explore.