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)

Particles


The final section of this chapter will introduce you to the use of particles in your game. Once you've gone through this, it should be child's play to use the extra functionality for them that we won't go over, since particles are very easy to set up and use, and they're also a very good component to get into the habit of using.

Before we begin coding particles, let's define what a particle is. A particle is a graphical resource defined by the particle type from which they are created, and they are displayed by using a particle system. They can create small or large effects without being CPU-intensive, allowing us to create cool effects without employing objects or sprites that could slow down the game. Particles create an organization for displaying your effects, and make it very easy. Particle types are "defined", so to speak, and are then displayed via a particle system directly, or through an emitter, which gives you some more functionality that you don't always need. We won...