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

Chapter 3. Let's Move It – Advanced Movement and Layout

In this recipe, we'll cover the following topics:

  • Dragging onscreen objects
  • Dragging objects on a grid
  • Moving a character on a grid
  • Setting a path
  • Creating enemy pathfinding
  • Controlling a character with a mouse and keyboard

Introduction

Ask any gamer what his/her favorite game is and you'll likely get an immediate response. Now ask the same gamer whether he/she would be willing to play only that game, and no other, forever. You probably won't get the same enthusiasm in the response and for good reason. I don't know about you, but I can't imagine playing just one game the rest of my life. Luckily, we have a lot of choice when it comes to what we play. With so many genres and subgenres out there, we ...

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