Book Image

GameMaker Programming By Example

By : Brian Christian, Steven Isaacs
Book Image

GameMaker Programming By Example

By: Brian Christian, Steven Isaacs

Overview of this book

This book is excellent resource for developers with any level of experience of GameMaker. At the start, we’ll provide an overview of the basic use of GameMaker: Studio, and show you how to set up a basic game where you handle input and collisions in a top-down perspective game. We continue on to showcase its more advanced features via six different example projects. The first example game demonstrates platforming with file I/O, followed by animation, views, and multiplayer networking. The next game illustrates AI and particle systems, while the final one will get you started with the built-in Box2D physics engine. By the end of this book, you have mastered lots of powerful techniques that can be utilized in various 2D games.
Table of Contents (16 chapters)

Making your scrolling platformer scroll


This next part is all about view manipulation in your game, and it's actually really easy. It might just be the easiest thing we teach you in this entire book.

So let's get started! We'll first make a background, and then do the rest of this in the room editor. Create a background resource in your project. If you have one ready to import, make sure that it's not the same throughout and that you'll be able to notice differences at different points in the background. Any size should work, as the room editor lets you stretch or loop your background if it's not perfectly fitting to the room size. Of course, when you stretch your background, it loses some quality, so for a game that you publish, you'll most likely want to make a background that fits the room or one that is fit for repeating itself. If you don't have one ready, you can make it with GameMaker directly. The editor for backgrounds is the same as the sprite editor.

After you've made your background...