Book Image

GameMaker Cookbook

Book Image

GameMaker Cookbook

Overview of this book

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.
Table of Contents (17 chapters)
GameMaker Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Creating game settings


I've noticed with modern games that I don't always like the default settings in terms of sound, visuals, controls, or even difficulty. I always go through the options menu to adjust everything and I know I'm not alone. It is because of this desire to customize your play experience that game developers add these options to the games they create. Now, this can be something as simple as controlling the music volume or as complicated as setting custom control macros, but I find how I play to be important. Let's take a look at how we can create a simple settings menu with audio options.

Getting ready

For this recipe, you can continue with the game from the previous chapter, or you can start with a new one. Either way, you'll need three rooms: rm_splash, rm_title, and rm_settings, in this particular order. As before, set rm_splash to move on to rm_title after a few seconds or once you hit the Spacebar. Your title screen should have a Settings button (obj_btn_settings) that...