Book Image

Gamemaker Essentials

4 (1)
Book Image

Gamemaker Essentials

4 (1)

Overview of this book

Table of Contents (16 chapters)

Drag and drop


One of the things GameMaker is well known for is the ability to create a game without the need to actually program anything. This is done using the drag and drop action in GameMaker.

A drag and drop action is essentially a piece of code that allows you to fill in the blanks with a user-friendly interface. It makes it easy for even someone with no programming knowledge at all to make a game.

To learn more about this, we are going to create a small game that will have the player move an object around the screen. For this, we are going to be using events and drag and drop actions.

We are going to need a new project for this. If GameMaker is not already open, open it and go to the New tab on the start screen. Name the project Drag and Drop-Movement and click on the Create button.

Once this is done, you will be presented with an empty project and we can get started.

Creating a sprite

To create sprites, perform the following steps:

  1. The first step we will be taking is to make a sprite so...