
GameMaker
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
More details
Other editions
Additional editions

Person
Content
Chapter 1
Introducing GameMaker: Studio
In This Chapter
Coding without coding using Actions
Coding by coding with GameMaker Language
Getting your game into players’ hands
Identifying the major features of GameMaker: Studio
Looking at the main steps of creating a game
GameMaker: Studio software, from YoYo Games, is a game development tool that enables you to make video games. At the Game Developers Conference (GDC), I had an opportunity to meet with key players from YoYo Games. I saw firsthand the level of excitement this team from Dundee, Scotland has. It’s as if each of them embodied the spirit of a magical dragon, circling high overhead a misty mountaintop, ready to breathe down green flames of magical energy to level up all game developers with enhanced game-making attributes.
All game developers can benefit from GameMaker: Studio. Whether you’re a professional developer looking to enter the videogame community, or a university student interested in breaking into the videogame field, or a 10-year-old with no coding experience at all, GameMaker: Studio has the tools you need to make your vision a reality.
Looking to the future
When I met with members of the YoYo team during GDC, I walked away with the feeling that this is a team with a dream. While I spoke to them, in the background, they had a PS4 setup running games made with GameMaker. They were telling me that it’s only a matter of time before everyone with a PS4 will be able to purchase and download those games. These are exciting times when a person with a Sony developers license can make her own games, whether it be from the office or the kitchen table, and then play it on a major console.
YoYo Games sees a day when any self-starter, of any age, can make a game with GameMaker: Studio, play it on his Nintendo 3DS, show it to his friends, and then possibly put it up for sale on the eShop. This is the direction we, as a gaming community, are headed: Independent developers have a spotlight shining on them, and it’s time to show the world what you can do.
As you start to think about your own possibilities for making games, keep these words of inspiration fresh in your mind:
- Start with the free version of GameMaker: Studio, and then keep growing and adding on as you make your way to becoming a professional.
- Hard work is what it’s all about — you’ll get out of it what you put into it.
- Include your own special touch in each of your games to make them unique and special.
- You can work your way up in the game development industry. Start out as a tester and then climb the ladder to becoming a developer.
- You don’t have to join a big company anymore to make a living making games. You just need the passion and desire to make the best game you can. The exploding indie scene opens game development up to everyone.
YoYo Games is looking forward to seeing the games you make so it can feature them on www.yoyogames.com. The YoYo Games website has a Showcase of games, along with YoYo Labs, where you can find open-source games. It also has a lively community in the forums and Help pages. Who knows? One day you might even see your game available for sale on your favorite console or handheld device!
Dragging and Dropping Your Way to Making a Game
You can make games with GameMaker: Studio without knowing code! That’s because GameMaker uses the drag-and-drop Actions (see Chapter 4). You use Actions to tell GameMaker how, what, when, and where you want something to happen during your game. When you create an Action, GameMaker creates the code for you in the background. For example, say you create an Action so that when the player presses the spacebar, she shoots bullets from her plane. When you make that Action, GameMaker creates the code that causes the plane to shoot a bullet when the player presses the spacebar. In that way, using the drag-and-drop Actions enables the non-developer to develop code.
The drag-and-drop Actions are also good for developers who do know how to code but want a quick and efficient way to write large blocks of code. For example, a developer could sit down and write out the code by hand, which can be timely and can lead to typos and errors. Or, she can use the drag-and-drop Actions to create those same blocks of code, which can take seconds instead of hours.
Understanding the GameMaker Language
The drag-and-drop Actions provide a quick and easy way to create code. But you should start your game-making adventure with an open mind for learning how to code because, ultimately, it will benefit you and your games. Plus, by learning code, you gain a better appreciation for how the Actions work.
I’m not a developer, but I’m familiar enough with code that I can tweak existing code. Having this level of familiarity with how code works give you some background knowledge on what you’re doing when you drag and drop an Action.
If you’re a professional developer, and you want to write specific code for your own specific means, then GameMaker: Studio features a code-editing tool that most professional game developers should appreciate. Part IV of this book dives into the GameMaker language — it’s filled with example code, including working with physics and controls for mobile devices. Chapter 14 includes sample code for saving game configurations such as muting the sound or customizing the game keys.
Publishing Games to Different Platforms
As of this writing, you can install GameMaker: Studio on a PC or on a Mac with a Windows emulator, but that doesn’t mean you’re stuck making only games for Windows. Oh no, my friends, that’s far from the truth. When you’re ready to invest in the Professional or Master Collection version of GameMaker: Studio, you open yourself up to a world of platforms on which you can publish your game.
Figure 1-1 shows the drop-down list showing the different platforms to which you can target your game.
Figure 1-1: You have lots of options for where to publish your game.
If you don’t see your favorite platform on this list, it’s probably just a matter of time before it appears.
If you’re wondering why you don’t see PS4 or Vita in Figure 1-1, that’s because you need to be a licensed Sony developer for that option to appear.
To publish a game to a specific platform, follow these steps:
- From the icon menu, click the Target drop-down list (refer to Figure 1-1).
The Target options appear.
- Choose the platform you want to play your game on (for example, HTML5, if you want to be able to play it in a browser, such as Chrome or Firefox).
The chosen platform appears in the Target field.
- Choose File⇒Create Application.
A navigation window opens, allowing you to choose where to save the files. GameMaker names the file for you.
- Navigate to where you want to save the files, and then click Save.
GameMaker saves the appropriate files for the platform you chose, as shown in Figure 1-2.
Figure 1-2: The saved game folder structure and files for HTML5 games.
Now you can take these saved games files and folders and use them to upload to a website, which is great for HTML5 games. I use FTP software such as FileZilla (https://filezilla-project.org) to do that.
You can update the favicon file to your own icon. The favicon icon appears in the tabs of most web browsers.
Highlighting the Key Features of GameMaker: Studio
GameMaker: Studio is so feature-rich, with such a multitude of tools, that I could write ten books on the subject! This book is excellent for those who want to learn what an Object is, and how Objects relate to Instances, and how you can assign Events and Actions to Objects to make them do things, like create a flower blossoming into a beautiful display of color, and then have the player blow it all up. You know, fun stuff like that. Objects and Actions are covered in detail in Chapters 3 and 4, respectively.
The interface for GameMaker: Studio is based on a series of windows. When you first open the software, you see a New Project window, from which you can do several things, such as open a tutorial, a demo, or a saved project, or start an entirely new project. When you start working on a project, the main window appears with a Resource tree, main menu, icon menu, and compile window. (I go into detail on each of these in Chapter 2.)
Another critical feature of GameMaker: Studio is the robust coding window, complete with color coding to highlight text. I discuss this in detail in Chapter 11. YoYo Games is planning an upgrade to this code window so that it supports tabs. This feature is not available as of this writing, but it should be out by the time you’re reading this book.
Creating a Game, Step by Step
The steps I take to create a game are the same approach I use for most any creative project. First, you have to plan. Then you have to plan some more.
Here’s a quick list of action items I take before creating a game:
- Create an outline of the game, complete with objectives,...
System requirements
File format: ePUB
Copy protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (not Kindle).
The file format ePub works well for novels and non-fiction books – i.e., „flowing” text without complex layout. On an e-reader or smartphone, line and page breaks automatically adjust to fit the small displays.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our ebook Help page.