O'Reilly logo

GameMaker Cookbook by Brandon Gardiner

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using particles to simulate kicking up dust

Even if your game's art style isn't meant to be photorealistic, there are many subtle things you can do to make them more immersive. One such thing is to add environmental cues, such as dust clouds, where your player character moves. Have you ever run down a dirt road? If so, your feet have certainly kicked up quite a bit of dust as you travelled along. Let's add the same effect to your game to give more depth to the environment.

Getting ready

To start with, you'll need the following objects: two separate ground parent objects (obj_grndParent_norm and obj_grndParent_dirt), two separate ground objects (obj_ground_norm and obj_ground_dirt), and a player object (obj_player). Give the two ground objects different ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required