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 2. It's Under Control – Exploring Various Control Schemes

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

  • Listing controls
  • Creating 2D movement
  • Adding a Run button
  • Making your character jump
  • Using a point-and-click interface
  • Following the cursor
  • Setting up a controller
  • Utilizing analogue joystick acceleration
  • Adding tap control
  • Using swipes
  • Moving characters or objects by tilting a device

Introduction

If someone gives you a videogame controller and asks you to play the game, your first question would likely be "How do I play?" This is a simple way of asking "How do I control what I see on the screen?" A game's controls are a major part of the gameplay as your player's input essentially determines everything. An otherwise good game can be rendered ...

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